Closes #21151: Merge with 3.4

This commit is contained in:
Zachary Ware 2014-07-03 11:03:46 -05:00
commit d8b129f279
3 changed files with 20 additions and 2 deletions

View file

@ -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;