diff options
author | Gregory P. Smith <greg@krypto.org> | 2013-03-23 23:05:36 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2013-03-23 23:05:36 (GMT) |
commit | b803c6c4b8d6256ac3d69f07f28c5c7024c3d4f5 (patch) | |
tree | 8758eaf66c77333c75998de33053b5ce5384a0f5 /PC/bdist_wininst/install.c | |
parent | 93f756b274fb376d4c7fe589b1211acb49cea092 (diff) | |
download | cpython-b803c6c4b8d6256ac3d69f07f28c5c7024c3d4f5.zip cpython-b803c6c4b8d6256ac3d69f07f28c5c7024c3d4f5.tar.gz cpython-b803c6c4b8d6256ac3d69f07f28c5c7024c3d4f5.tar.bz2 |
Fixes issue4653 - Correctly specify the buffer size to FormatMessageW and
correctly check for errors on two CreateFileMapping calls.
Diffstat (limited to 'PC/bdist_wininst/install.c')
-rw-r--r-- | PC/bdist_wininst/install.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/bdist_wininst/install.c b/PC/bdist_wininst/install.c index 771922c..c11d45d 100644 --- a/PC/bdist_wininst/install.c +++ b/PC/bdist_wininst/install.c @@ -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, |