Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef8d95c commit f2b69dfCopy full SHA for f2b69df
1 file changed
PC/winreg.c
@@ -1129,7 +1129,7 @@ PyEnumValue(PyObject *self, PyObject *args)
1129
int index;
1130
long rc;
1131
wchar_t *retValueBuf;
1132
- wchar_t *tmpBuf;
+ BYTE *tmpBuf;
1133
BYTE *retDataBuf;
1134
DWORD retValueSize, bufValueSize;
1135
DWORD retDataSize, bufDataSize;
@@ -1177,7 +1177,7 @@ PyEnumValue(PyObject *self, PyObject *args)
1177
break;
1178
1179
bufDataSize *= 2;
1180
- tmpBuf = (wchar_t *)PyMem_Realloc(retDataBuf, bufDataSize);
+ tmpBuf = (BYTE *)PyMem_Realloc(retDataBuf, bufDataSize);
1181
if (tmpBuf == NULL) {
1182
PyErr_NoMemory();
1183
retVal = NULL;
0 commit comments