Possible fix for > 4Gb handling on win32.

This commit is contained in:
Moritz Bunkus 2003-07-19 08:27:36 +00:00
parent 88aa52192c
commit f03a90a4fa

View File

@ -161,9 +161,12 @@ void mm_io_c::close() {
}
uint64 mm_io_c::getFilePointer() {
LONG dummy = 0;
LONG high = 0;
DWORD low;
return SetFilePointer((HANDLE)file, 0, &dummy, FILE_CURRENT);
low = SetFilePointer((HANDLE)file, 0, &high, FILE_CURRENT);
return ((uint64)high) << 32 + (uint64)low;
}
void mm_io_c::setFilePointer(int64 offset, seek_mode mode) {