Fix compiler warnings on Windows introduced in bpo-13617. (#2464)

This commit is contained in:
Serhiy Storchaka 2017-06-28 09:55:22 +03:00 committed by GitHub
parent f7eae0adfc
commit ccdc09ed1e
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -594,7 +594,7 @@ summary_setproperty(msiobj* si, PyObject *args)
return NULL;
if (PyUnicode_Check(data)) {
WCHAR *value = _PyUnicode_AsUnicode(data);
const WCHAR *value = _PyUnicode_AsUnicode(data);
if (value == NULL) {
return NULL;
}