cpython: 4db1b0bb3683 (original) (raw)
Mercurial > cpython
changeset 82936:4db1b0bb3683 3.3
Fixes issue4653 - Correctly specify the buffer size to FormatMessageW and correctly check for errors on two CreateFileMapping calls. [#4653]
Gregory P. Smith greg@krypto.org | |
---|---|
date | Sat, 23 Mar 2013 16:05:36 -0700 |
parents | 263fdce97aa0 |
children | ace52be8da89 9445505389cf |
files | PC/bdist_wininst/extract.c PC/bdist_wininst/install.c Python/dynload_win.c |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-)[+] [-] PC/bdist_wininst/extract.c 2 PC/bdist_wininst/install.c 2 Python/dynload_win.c 2 |
line wrap: on
line diff
--- a/PC/bdist_wininst/extract.c +++ b/PC/bdist_wininst/extract.c @@ -127,7 +127,7 @@ char *map_new_file(DWORD flags, char *fi CloseHandle(hFile);
--- a/PC/bdist_wininst/install.c +++ b/PC/bdist_wininst/install.c @@ -1019,7 +1019,7 @@ static char *MapExistingFile(char *pathn NULL, PAGE_READONLY, 0, 0, NULL); CloseHandle(hFile);
data = MapViewOfFile(hFileMapping,
--- a/Python/dynload_win.c +++ b/Python/dynload_win.c @@ -235,7 +235,7 @@ dl_funcptr _PyImport_GetDynLoadWindows(c SUBLANG_DEFAULT), /* Default language / theInfo, / the buffer */
sizeof(theInfo), /* the buffer size */[](#l3.7)
sizeof(theInfo) / sizeof(wchar_t), /* size in wchars */[](#l3.8) NULL); /* no additional format args. */[](#l3.9)