Fixes issue4653 - Correctly specify the buffer size to FormatMessageW and

correctly check for errors on two CreateFileMapping calls.
This commit is contained in:
Gregory P. Smith 2013-03-23 16:05:36 -07:00
parent 93f756b274
commit b803c6c4b8
3 changed files with 3 additions and 3 deletions

View file

@ -1019,7 +1019,7 @@ static char *MapExistingFile(char *pathname, DWORD *psize)
NULL, PAGE_READONLY, 0, 0, NULL);
CloseHandle(hFile);
if (hFileMapping == INVALID_HANDLE_VALUE)
if (hFileMapping == NULL)
return NULL;
data = MapViewOfFile(hFileMapping,