aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-06-28 09:55:22 +0300
committerGitHub <noreply@github.com>2017-06-28 09:55:22 +0300
commitccdc09ed1ebea7d7c6b41548132aa08bd797bfe8 (patch)
tree6c39c86a54ebb2c473fe4a27e5c07d29bb2bdf6f /Modules
parent[security] bpo-13617: Reject embedded null characters in wchar* strings. (#2302) (diff)
downloadcpython-ccdc09ed1ebea7d7c6b41548132aa08bd797bfe8.tar.gz
cpython-ccdc09ed1ebea7d7c6b41548132aa08bd797bfe8.tar.bz2
cpython-ccdc09ed1ebea7d7c6b41548132aa08bd797bfe8.zip
Fix compiler warnings on Windows introduced in bpo-13617. (#2464)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/callproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c
index 6990a76d51e..be757ef6f85 100644
--- a/Modules/_ctypes/callproc.c
+++ b/Modules/_ctypes/callproc.c
@@ -1249,7 +1249,7 @@ The handle may be used to locate exported functions in this\n\
module.\n";
static PyObject *load_library(PyObject *self, PyObject *args)
{
- WCHAR *name;
+ const WCHAR *name;
PyObject *nameobj;
PyObject *ignored;
HMODULE hMod;