Changeset 6991 in vbox for trunk/src/VBox/Runtime/r3
- Timestamp:
- Feb 18, 2008 1:19:02 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28186
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/fileio-win.cpp
r6984 r6991 108 108 * If it fails with a seek error it's because we hit the file system limit. 109 109 */ 110 /** @todo r=bird: I'd be very interested to know on which versions of windows and on which file systems 111 * this supposedly works. The fastfat sources in the latest WDK makes no limit checks during 110 /** @todo r=bird: I'd be very interested to know on which versions of windows and on which file systems 111 * this supposedly works. The fastfat sources in the latest WDK makes no limit checks during 112 112 * file seeking, only at the time of writing (and some other odd ones we cannot make use of). */ 113 113 uint64_t offCurrent; … … 235 235 if (fOpen & RTFILE_O_NOT_CONTENT_INDEXED) 236 236 { 237 if (FALSE == SetFileAttributes(pszFilename, FILE_ATTRIBUTE_NOT_CONTENT_INDEXED)) 238 return RTErrConvertFromWin32(GetLastError()); 237 if (!SetFileAttributes(pszFilename, FILE_ATTRIBUTE_NOT_CONTENT_INDEXED)) 238 { 239 rc = RTErrConvertFromWin32(GetLastError()); 240 CloseHandle(hFile); 241 return rc; 242 } 239 243 } 240 244 #else … … 264 268 if (fOpen & RTFILE_O_NOT_CONTENT_INDEXED) 265 269 { 266 if ( FALSE ==SetFileAttributesW(pwszFilename, FILE_ATTRIBUTE_NOT_CONTENT_INDEXED))270 if (!SetFileAttributesW(pwszFilename, FILE_ATTRIBUTE_NOT_CONTENT_INDEXED)) 267 271 { 268 272 rc = RTErrConvertFromWin32(GetLastError()); 273 CloseHandle(hFile); 269 274 RTUtf16Free(pwszFilename); 270 275 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.