summaryrefslogtreecommitdiffstats
path: root/Python/dynload_win.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2013-03-23 23:05:36 (GMT)
committerGregory P. Smith <greg@krypto.org>2013-03-23 23:05:36 (GMT)
commitb803c6c4b8d6256ac3d69f07f28c5c7024c3d4f5 (patch)
tree8758eaf66c77333c75998de33053b5ce5384a0f5 /Python/dynload_win.c
parent93f756b274fb376d4c7fe589b1211acb49cea092 (diff)
downloadcpython-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 'Python/dynload_win.c')
-rw-r--r--Python/dynload_win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/dynload_win.c b/Python/dynload_win.c
index 25b6680..edb6038 100644
--- a/Python/dynload_win.c
+++ b/Python/dynload_win.c
@@ -235,7 +235,7 @@ dl_funcptr _PyImport_GetDynLoadWindows(const char *shortname,
SUBLANG_DEFAULT),
/* Default language */
theInfo, /* the buffer */
- sizeof(theInfo), /* the buffer size */
+ sizeof(theInfo) / sizeof(wchar_t), /* size in wchars */
NULL); /* no additional format args. */
/* Problem: could not get the error message.