mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Merge 3.2
This commit is contained in:
commit
e6bfa2911a
3 changed files with 23 additions and 2 deletions
|
@ -912,9 +912,9 @@ Reg2Py(BYTE *retDataBuf, DWORD retDataSize, DWORD typ)
|
|||
switch (typ) {
|
||||
case REG_DWORD:
|
||||
if (retDataSize == 0)
|
||||
obData = PyLong_FromLong(0);
|
||||
obData = PyLong_FromUnsignedLong(0);
|
||||
else
|
||||
obData = PyLong_FromLong(*(int *)retDataBuf);
|
||||
obData = PyLong_FromUnsignedLong(*(int *)retDataBuf);
|
||||
break;
|
||||
case REG_SZ:
|
||||
case REG_EXPAND_SZ:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue