summaryrefslogtreecommitdiff
path: root/Python/dynload_win.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2013-03-23 16:05:36 -0700
committerGregory P. Smith <greg@krypto.org>2013-03-23 16:05:36 -0700
commit09419f23ef7e459956abadb2834b14c553637abd (patch)
treeb0ae8810879df225c9fe525295704987b736c502 /Python/dynload_win.c
parent580ec4b63a0767691f28ce45f0b36b0492ec98f7 (diff)
downloadcpython-09419f23ef7e459956abadb2834b14c553637abd.tar.gz
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 25b6680b3b..edb6038e3b 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.