Fix compilation warning on Windows

This commit is contained in:
Amaury Forgeot d'Arc 2010-08-16 22:11:29 +00:00
parent ef8d95c498
commit f2b69df023
1 changed files with 2 additions and 2 deletions

View File

@ -1129,7 +1129,7 @@ PyEnumValue(PyObject *self, PyObject *args)
int index;
long rc;
wchar_t *retValueBuf;
wchar_t *tmpBuf;
BYTE *tmpBuf;
BYTE *retDataBuf;
DWORD retValueSize, bufValueSize;
DWORD retDataSize, bufDataSize;
@ -1177,7 +1177,7 @@ PyEnumValue(PyObject *self, PyObject *args)
break;
bufDataSize *= 2;
tmpBuf = (wchar_t *)PyMem_Realloc(retDataBuf, bufDataSize);
tmpBuf = (BYTE *)PyMem_Realloc(retDataBuf, bufDataSize);
if (tmpBuf == NULL) {
PyErr_NoMemory();
retVal = NULL;