Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f2b69df

Browse files
committed
Fix compilation warning on Windows
1 parent ef8d95c commit f2b69df

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PC/winreg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ PyEnumValue(PyObject *self, PyObject *args)
11291129
int index;
11301130
long rc;
11311131
wchar_t *retValueBuf;
1132-
wchar_t *tmpBuf;
1132+
BYTE *tmpBuf;
11331133
BYTE *retDataBuf;
11341134
DWORD retValueSize, bufValueSize;
11351135
DWORD retDataSize, bufDataSize;
@@ -1177,7 +1177,7 @@ PyEnumValue(PyObject *self, PyObject *args)
11771177
break;
11781178

11791179
bufDataSize *= 2;
1180-
tmpBuf = (wchar_t *)PyMem_Realloc(retDataBuf, bufDataSize);
1180+
tmpBuf = (BYTE *)PyMem_Realloc(retDataBuf, bufDataSize);
11811181
if (tmpBuf == NULL) {
11821182
PyErr_NoMemory();
11831183
retVal = NULL;

0 commit comments

Comments
 (0)