Replace dead code with an assertion in winreg.c. (GH-10028)
This commit is contained in:
parent
a44d34e179
commit
5d95312fb8
|
@ -651,8 +651,7 @@ Py2Reg(PyObject *value, DWORD typ, BYTE **retDataBuf, DWORD *retDataSize)
|
||||||
|
|
||||||
t = PyList_GET_ITEM(value, j);
|
t = PyList_GET_ITEM(value, j);
|
||||||
wstr = PyUnicode_AsUnicodeAndSize(t, &len);
|
wstr = PyUnicode_AsUnicodeAndSize(t, &len);
|
||||||
if (wstr == NULL)
|
assert(wstr);
|
||||||
return FALSE;
|
|
||||||
wcscpy(P, wstr);
|
wcscpy(P, wstr);
|
||||||
P += (len + 1);
|
P += (len + 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue