Fixed computing a file size on Windows

The lower part should not have been sign-extended.
edge.strict_endians
Jean-Pierre André 2013-07-30 11:42:59 +02:00
parent 2c10bd6a98
commit ebf35000c9
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
/**