Merge 3.2

This commit is contained in:
Brian Curtin 2012-12-27 10:14:30 -06:00
commit 62cf69ec7c
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;