diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2010-08-16 22:11:29 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2010-08-16 22:11:29 (GMT) |
commit | f2b69df023f48f114fdebc784a7a3c4e91b5255e (patch) | |
tree | f4b5087158148c70ae55cbe3c0718830ad15867e /PC | |
parent | ef8d95c4987cc5dd358e718c992c6bb629380702 (diff) | |
download | cpython-f2b69df023f48f114fdebc784a7a3c4e91b5255e.zip cpython-f2b69df023f48f114fdebc784a7a3c4e91b5255e.tar.gz cpython-f2b69df023f48f114fdebc784a7a3c4e91b5255e.tar.bz2 |
Fix compilation warning on Windows
Diffstat (limited to 'PC')
-rw-r--r-- | PC/winreg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/PC/winreg.c b/PC/winreg.c index c134a35..eacb4c2 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; |