Changeset 769 in dev for trunk/ab5.0/jenga/include
- Timestamp:
- Mar 28, 2009, 12:12:58 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/jenga/include/common/File.h
r583 r769 18 18 std::string Read() 19 19 { 20 HANDLE hFile = CreateFile( filePath.c_str(), GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL );20 HANDLE hFile = CreateFile( filePath.c_str(), GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL ); 21 21 if( hFile == INVALID_HANDLE_VALUE ) 22 22 { … … 38 38 bool ReadBinary( Binary &binary ) 39 39 { 40 HANDLE hFile = CreateFile( filePath.c_str(), GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL );40 HANDLE hFile = CreateFile( filePath.c_str(), GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL ); 41 41 if( hFile == INVALID_HANDLE_VALUE ) 42 42 {
Note:
See TracChangeset
for help on using the changeset viewer.