mirror of
https://github.com/python/cpython.git
synced 2025-11-28 22:18:54 +00:00
Fix compiler warnings on Windows introduced in bpo-13617. (#2464)
This commit is contained in:
parent
f7eae0adfc
commit
ccdc09ed1e
2 changed files with 2 additions and 2 deletions
|
|
@ -1249,7 +1249,7 @@ The handle may be used to locate exported functions in this\n\
|
||||||
module.\n";
|
module.\n";
|
||||||
static PyObject *load_library(PyObject *self, PyObject *args)
|
static PyObject *load_library(PyObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
WCHAR *name;
|
const WCHAR *name;
|
||||||
PyObject *nameobj;
|
PyObject *nameobj;
|
||||||
PyObject *ignored;
|
PyObject *ignored;
|
||||||
HMODULE hMod;
|
HMODULE hMod;
|
||||||
|
|
|
||||||
|
|
@ -594,7 +594,7 @@ summary_setproperty(msiobj* si, PyObject *args)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (PyUnicode_Check(data)) {
|
if (PyUnicode_Check(data)) {
|
||||||
WCHAR *value = _PyUnicode_AsUnicode(data);
|
const WCHAR *value = _PyUnicode_AsUnicode(data);
|
||||||
if (value == NULL) {
|
if (value == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue