Fixed computing a file size on Windows
The lower part should not have been sign-extended.edge.strict_endians
parent
2c10bd6a98
commit
ebf35000c9
|
@ -599,7 +599,7 @@ static s64 ntfs_device_win32_getsize(HANDLE handle)
|
|||
ntfs_log_trace("Couldn't get file size.\n");
|
||||
return -1;
|
||||
}
|
||||
return ((s64)hiword << 32) + loword;
|
||||
return ((s64)hiword << 32) + (ULONG)loword;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue