mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
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:
parent
e3dc606623
commit
32e3678000
1 changed files with 1 additions and 1 deletions
|
|
@ -998,7 +998,7 @@ S32 Platform::getFileSize(const char *pFilePath)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
// must be a real file then
|
// must be a real file then
|
||||||
return findData.nFileSizeLow;
|
return ((findData.nFileSizeHigh * (MAXDWORD+1)) + findData.nFileSizeLow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue