diff options
author | Gregory P. Smith <greg@krypto.org> | 2013-03-23 23:06:06 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2013-03-23 23:06:06 (GMT) |
commit | d6f1d1647bce43b8c0d4cb1ba6d9c3004b3e357d (patch) | |
tree | 560c2bada073087b8bd4609f25383e542d611243 /Python | |
parent | 23c31d51928f82430fe5f0f39ca2141534d3a8bb (diff) | |
parent | b803c6c4b8d6256ac3d69f07f28c5c7024c3d4f5 (diff) | |
download | cpython-d6f1d1647bce43b8c0d4cb1ba6d9c3004b3e357d.zip cpython-d6f1d1647bce43b8c0d4cb1ba6d9c3004b3e357d.tar.gz cpython-d6f1d1647bce43b8c0d4cb1ba6d9c3004b3e357d.tar.bz2 |
Fixes issue4653 - Correctly specify the buffer size to FormatMessageW and
correctly check for errors on two CreateFileMapping calls.
Diffstat (limited to 'Python')
-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 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. |