mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Closes #21151: Merge with 3.4
This commit is contained in:
commit
d8b129f279
3 changed files with 20 additions and 2 deletions
|
@ -871,8 +871,10 @@ Py2Reg(PyObject *value, DWORD typ, BYTE **retDataBuf, DWORD *retDataSize)
|
|||
/* ALSO handle ALL unknown data types here. Even if we can't
|
||||
support it natively, we should handle the bits. */
|
||||
default:
|
||||
if (value == Py_None)
|
||||
if (value == Py_None) {
|
||||
*retDataSize = 0;
|
||||
*retDataBuf = NULL;
|
||||
}
|
||||
else {
|
||||
Py_buffer view;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue