diff options
Diffstat (limited to 'PC')
-rw-r--r-- | PC/winreg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/PC/winreg.c b/PC/winreg.c index 4f5a676..c6ad7ab 100644 --- a/PC/winreg.c +++ b/PC/winreg.c @@ -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); } |