Fixed incorrect file size returned

According to
https://msdn.microsoft.com/en-us/library/windows/desktop/aa365740%28v=vs.85%29.aspx
to return the actual file size you need to use the high and low file
size.
This commit is contained in:
Nathan Bowhay 2015-02-11 09:57:36 -08:00
parent e3dc606623
commit 32e3678000

View file

@ -998,7 +998,7 @@ S32 Platform::getFileSize(const char *pFilePath)
return -1;
// must be a real file then
return findData.nFileSizeLow;
return ((findData.nFileSizeHigh * (MAXDWORD+1)) + findData.nFileSizeLow);
}