Changeset 6431 in vbox for trunk/src/VBox
- Timestamp:
- Jan 21, 2008 10:41:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/fileio-win.cpp
r5999 r6431 67 67 inline bool MySetFilePointer(RTFILE File, uint64_t offSeek, uint64_t *poffNew, unsigned uMethod) 68 68 { 69 bool fRc; 69 70 LARGE_INTEGER off; 71 70 72 off.QuadPart = offSeek; 71 73 #if 1 72 off.LowPart = SetFilePointer((HANDLE)File, off.LowPart, &off.HighPart, uMethod); 73 bool fRc = off.LowPart != INVALID_SET_FILE_POINTER; 74 if (off.LowPart != INVALID_SET_FILE_POINTER) 75 { 76 off.LowPart = SetFilePointer((HANDLE)File, off.LowPart, &off.HighPart, uMethod); 77 fRc = off.LowPart != INVALID_SET_FILE_POINTER; 78 } 79 else 80 { 81 SetLastError(NO_ERROR); 82 off.LowPart = SetFilePointer((HANDLE)File, off.LowPart, &off.HighPart, uMethod); 83 fRc = GetLastError() == NO_ERROR; 84 } 74 85 #else 75 boolfRc = SetFilePointerEx((HANDLE)File, off, &off, uMethod);86 fRc = SetFilePointerEx((HANDLE)File, off, &off, uMethod); 76 87 #endif 77 88 if (fRc && poffNew)
Note:
See TracChangeset
for help on using the changeset viewer.