]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37445: Include FORMAT_MESSAGE_IGNORE_INSERTS in FormatMessageW() calls (GH-14462)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 9 Sep 2019 09:56:03 +0000 (02:56 -0700)
committerGitHub <noreply@github.com>
Mon, 9 Sep 2019 09:56:03 +0000 (02:56 -0700)
commit1af2c0ec2f63cc6516eb814c3e29d94451a52194
tree26a808ef4f1f052cccc66931ffbc01e4281f4fcf
parent5190b7193c184268d5c8a9440b3a5a8bcd84a23e
bpo-37445: Include FORMAT_MESSAGE_IGNORE_INSERTS in FormatMessageW() calls (GH-14462)

If FormatMessageW() is passed the FORMAT_MESSAGE_FROM_SYSTEM flag without FORMAT_MESSAGE_IGNORE_INSERTS, it will fail if there are insert sequences in the message definition.
(cherry picked from commit a6563650c835d50f7302971a5b145e94f9d0dc68)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Misc/NEWS.d/next/Windows/2019-06-28-18-10-29.bpo-37445.LsdYO6.rst [new file with mode: 0644]
Modules/_ctypes/callproc.c
Modules/overlapped.c
PC/bdist_wininst/install.c