mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 04:11:44 +00:00
Possible fix for > 4Gb handling on win32.
This commit is contained in:
parent
88aa52192c
commit
f03a90a4fa
@ -161,9 +161,12 @@ void mm_io_c::close() {
|
||||
}
|
||||
|
||||
uint64 mm_io_c::getFilePointer() {
|
||||
LONG dummy = 0;
|
||||
LONG high = 0;
|
||||
DWORD low;
|
||||
|
||||
low = SetFilePointer((HANDLE)file, 0, &high, FILE_CURRENT);
|
||||
|
||||
return SetFilePointer((HANDLE)file, 0, &dummy, FILE_CURRENT);
|
||||
return ((uint64)high) << 32 + (uint64)low;
|
||||
}
|
||||
|
||||
void mm_io_c::setFilePointer(int64 offset, seek_mode mode) {
|
||||
|
Loading…
Reference in New Issue
Block a user