Make GCC happy
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7311 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
3a3d2202a7
commit
488ecccde5
7 changed files with 24 additions and 14 deletions
|
@ -68,7 +68,7 @@ static char* CreateMappedFileView(LPCTSTR Path, DWORD FAccess, DWORD FShare, DWO
|
|||
HANDLE hFile = CreateFile(Path, FAccess, FShare, NULL, FMode, 0, NULL);
|
||||
if (hFile == INVALID_HANDLE_VALUE) return pView;
|
||||
ULARGE_INTEGER fs;
|
||||
validSize = GetFileSize64(hFile, fs) && sizeof(size_t) >= 8 || !fs.HighPart;
|
||||
validSize = GetFileSize64(hFile, fs) && (sizeof(size_t) >= 8 || !fs.HighPart);
|
||||
FSize = sizeof(size_t) >= 8 ? (size_t) fs.QuadPart : fs.LowPart;
|
||||
HANDLE hMap = validSize ? CreateFileMapping(hFile, NULL, PProtect, 0, 0, NULL) : INVALID_HANDLE_VALUE;
|
||||
if (hMap != INVALID_HANDLE_VALUE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue