Clement Rouault added the comment:

I also stumbled on this issue when playing with the winreg module.
I will try to make the discussion go forward by submitting a new patch.
I added a test and tried everything (test included on 3.5) on my own computer 
(windows 8.1 64b)
There are two points that might be 'sensitive' and I would like to have 
someone's opinion:
    * I am using `DWORD64` as an unsigned 64bit value as `QWORD` is not defined 
in <windows.h>
    * I changed one line of the previous implementation for REG_DWORD:
        * `PyLong_FromUnsignedLong(*(int *)retDataBuf);` became 
`PyLong_FromUnsignedLong(*(DWORD *)retDataBuf);`
        * I don't think it is a problem, but better ask than break something

----------
versions: +Python 3.5 -Python 3.4
Added file: http://bugs.python.org/file42954/winreg_qword_patch_with_test.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23026>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to