summaryrefslogtreecommitdiffstats
path: root/PC/bdist_wininst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-03-25 06:01:37 (GMT)
committerGeorg Brandl <georg@python.org>2013-03-25 06:01:37 (GMT)
commita809e4a54007303efb084b85ba53605adaa41b64 (patch)
treed038bc1b85b83594b29f00ae5bc10b5290ffdf71 /PC/bdist_wininst
parentd08d0b1c69b19c58afb998e30eadfc7b9de26378 (diff)
parent153866ea9ab80323d247a9c49d1fdf50e07e7330 (diff)
downloadcpython-3.3.1rc1.zip
cpython-3.3.1rc1.tar.gz
cpython-3.3.1rc1.tar.bz2
merge with upstream 3.3 branchv3.3.1rc1
Diffstat (limited to 'PC/bdist_wininst')
-rw-r--r--PC/bdist_wininst/extract.c2
-rw-r--r--PC/bdist_wininst/install.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/PC/bdist_wininst/extract.c b/PC/bdist_wininst/extract.c
index c900f23..aec8eda 100644
--- a/PC/bdist_wininst/extract.c
+++ b/PC/bdist_wininst/extract.c
@@ -127,7 +127,7 @@ char *map_new_file(DWORD flags, char *filename,
CloseHandle(hFile);
- if (hFileMapping == INVALID_HANDLE_VALUE) {
+ if (hFileMapping == NULL) {
if (notify)
notify(SYSTEM_ERROR,
"CreateFileMapping (%s)", filename);
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,