From 32e36780003c3ebb1ef0a4342669f47d23e69126 Mon Sep 17 00:00:00 2001 From: Nathan Bowhay Date: Wed, 11 Feb 2015 09:57:36 -0800 Subject: [PATCH] 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. --- Engine/source/platformWin32/winFileio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/platformWin32/winFileio.cpp b/Engine/source/platformWin32/winFileio.cpp index 7296ed32e..337c5b51e 100644 --- a/Engine/source/platformWin32/winFileio.cpp +++ b/Engine/source/platformWin32/winFileio.cpp @@ -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); }