Fix PyUnicode_AsWideCharString(): set *size if size is not NULL
This commit is contained in:
parent
15d597a245
commit
71e91a358b
|
@ -1215,6 +1215,8 @@ PyUnicode_AsWideCharString(PyUnicodeObject *unicode,
|
|||
return NULL;
|
||||
}
|
||||
unicode_aswidechar(unicode, buffer, buflen);
|
||||
if (size)
|
||||
*size = buflen;
|
||||
return buffer;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue