Commit 5d95312f authored by Zackery Spytz's avatar Zackery Spytz Committed by Serhiy Storchaka

Replace dead code with an assertion in winreg.c. (GH-10028)

parent a44d34e1
......@@ -651,8 +651,7 @@ Py2Reg(PyObject *value, DWORD typ, BYTE **retDataBuf, DWORD *retDataSize)
t = PyList_GET_ITEM(value, j);
wstr = PyUnicode_AsUnicodeAndSize(t, &len);
if (wstr == NULL)
return FALSE;
assert(wstr);
wcscpy(P, wstr);
P += (len + 1);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment