- Timestamp:
- Jun 22, 2007 11:30:44 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/file_access_win32.c
r974 r1381 26 26 #include <time.h> 27 27 28 #if defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE!=0 29 /* WinCE lacks READ_CONTROL so we must use GENERIC_READ */ 30 # define CONTROL_ACCESS GENERIC_READ 31 #else 32 # define CONTROL_ACCESS READ_CONTROL 33 #endif 34 35 28 36 /* 29 37 * pj_file_exists() … … 37 45 38 46 hFile = CreateFile(PJ_STRING_TO_NATIVE(filename,wfilename,sizeof(wfilename)), 39 READ_CONTROL,47 CONTROL_ACCESS, 40 48 FILE_SHARE_READ, NULL, 41 49 OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); … … 61 69 62 70 hFile = CreateFile(PJ_STRING_TO_NATIVE(filename, wfilename,sizeof(wfilename)), 63 READ_CONTROL,71 CONTROL_ACCESS, 64 72 FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, 65 73 OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); … … 170 178 171 179 hFile = CreateFile(PJ_STRING_TO_NATIVE(filename,wfilename,sizeof(wfilename)), 172 READ_CONTROL,180 CONTROL_ACCESS, 173 181 FILE_SHARE_READ, NULL, 174 182 OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
Note: See TracChangeset
for help on using the changeset viewer.