[Python-checkins] r84112 - python/branches/py3k/PC/winreg.c
amaury.forgeotdarc
python-checkins at python.org
Tue Aug 17 00:11:29 CEST 2010
Author: amaury.forgeotdarc
Date: Tue Aug 17 00:11:29 2010
New Revision: 84112
Log:
Fix compilation warning on Windows
Modified:
python/branches/py3k/PC/winreg.c
Modified: python/branches/py3k/PC/winreg.c
==============================================================================
--- python/branches/py3k/PC/winreg.c (original)
+++ python/branches/py3k/PC/winreg.c Tue Aug 17 00:11:29 2010
@@ -1129,7 +1129,7 @@
int index;
long rc;
wchar_t *retValueBuf;
- wchar_t *tmpBuf;
+ BYTE *tmpBuf;
BYTE *retDataBuf;
DWORD retValueSize, bufValueSize;
DWORD retDataSize, bufDataSize;
@@ -1177,7 +1177,7 @@
break;
bufDataSize *= 2;
- tmpBuf = (wchar_t *)PyMem_Realloc(retDataBuf, bufDataSize);
+ tmpBuf = (BYTE *)PyMem_Realloc(retDataBuf, bufDataSize);
if (tmpBuf == NULL) {
PyErr_NoMemory();
retVal = NULL;
More information about the Python-checkins
mailing list