Merge 3.3

This commit is contained in:
Brian Curtin 2012-12-27 10:15:54 -06:00
commit 4482b01d23
3 changed files with 16 additions and 1 deletions

View file

@ -785,7 +785,7 @@ Py2Reg(PyObject *value, DWORD typ, BYTE **retDataBuf, DWORD *retDataSize)
memcpy(*retDataBuf, &zero, sizeof(DWORD));
}
else {
DWORD d = PyLong_AsLong(value);
DWORD d = PyLong_AsUnsignedLong(value);
memcpy(*retDataBuf, &d, sizeof(DWORD));
}
break;