diff options
author | Gregory P. Smith <greg@krypto.org> | 2013-03-23 16:05:36 -0700 |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2013-03-23 16:05:36 -0700 |
commit | 09419f23ef7e459956abadb2834b14c553637abd (patch) | |
tree | b0ae8810879df225c9fe525295704987b736c502 /Python/dynload_win.c | |
parent | 580ec4b63a0767691f28ce45f0b36b0492ec98f7 (diff) | |
download | cpython-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.c | 2 |
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. |