From f2b69df023f48f114fdebc784a7a3c4e91b5255e Mon Sep 17 00:00:00 2001 From: Amaury Forgeot d'Arc Date: Mon, 16 Aug 2010 22:11:29 +0000 Subject: [PATCH] Fix compilation warning on Windows --- PC/winreg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PC/winreg.c b/PC/winreg.c index c134a352e03..eacb4c2723e 100644 --- a/PC/winreg.c +++ b/PC/winreg.c @@ -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;