Commit f2b69df0 authored by Amaury Forgeot d'Arc's avatar Amaury Forgeot d'Arc

Fix compilation warning on Windows

parent ef8d95c4
...@@ -1129,7 +1129,7 @@ PyEnumValue(PyObject *self, PyObject *args) ...@@ -1129,7 +1129,7 @@ PyEnumValue(PyObject *self, PyObject *args)
int index; int index;
long rc; long rc;
wchar_t *retValueBuf; wchar_t *retValueBuf;
wchar_t *tmpBuf; BYTE *tmpBuf;
BYTE *retDataBuf; BYTE *retDataBuf;
DWORD retValueSize, bufValueSize; DWORD retValueSize, bufValueSize;
DWORD retDataSize, bufDataSize; DWORD retDataSize, bufDataSize;
...@@ -1177,7 +1177,7 @@ PyEnumValue(PyObject *self, PyObject *args) ...@@ -1177,7 +1177,7 @@ PyEnumValue(PyObject *self, PyObject *args)
break; break;
bufDataSize *= 2; bufDataSize *= 2;
tmpBuf = (wchar_t *)PyMem_Realloc(retDataBuf, bufDataSize); tmpBuf = (BYTE *)PyMem_Realloc(retDataBuf, bufDataSize);
if (tmpBuf == NULL) { if (tmpBuf == NULL) {
PyErr_NoMemory(); PyErr_NoMemory();
retVal = NULL; retVal = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment