This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: winreg.QueryValueEx returns signed 32bit value instead of unsigned
Type: behavior Stage: resolved
Components: Extension Modules, Windows Versions: Python 3.2, Python 3.3, Python 3.4, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: 14420 Superseder:
Assigned To: brian.curtin Nosy List: RoSanford, brian.curtin, python-dev
Priority: normal Keywords: needs review, patch

Created on 2012-12-24 00:16 by brian.curtin, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue16759.diff brian.curtin, 2012-12-24 01:05
Messages (5)
msg178023 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2012-12-24 00:16
Making this its own issue from msg156935 on #14420:

"Likewise, the winreg.QueryValueEx method returns a signed 32 bit value, instead of a 32 bit unsigned value."
msg178025 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2012-12-24 00:33
Marking this dependent on #14420 because we can't reliably test QueryValueEx's unsigned value without being able to SetValueEx an unsigned value.
msg178026 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2012-12-24 01:05
Here's a patch. It depends on the patch from #14420 being applied in some way (I cloned from a branch which included it).
msg178317 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-12-27 20:14
New changeset 4b7e60e05027 by Brian Curtin in branch '3.2':
Fix #16759. Convert DWORD registry values using PyLong_FromUnsignedLong.
http://hg.python.org/cpython/rev/4b7e60e05027
msg178322 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-12-27 20:37
New changeset d68563e7ae82 by Brian Curtin in branch '2.7':
Fix #16759. Convert DWORD registry values using unsigned long.
http://hg.python.org/cpython/rev/d68563e7ae82
History
Date User Action Args
2022-04-11 14:57:39adminsetgithub: 60963
2012-12-27 20:39:07brian.curtinsetstatus: open -> closed
stage: patch review -> resolved
resolution: fixed
versions: + Python 2.7, Python 3.3, Python 3.4
2012-12-27 20:37:46python-devsetmessages: + msg178322
2012-12-27 20:14:57python-devsetnosy: + python-dev
messages: + msg178317
2012-12-24 01:05:53brian.curtinsetkeywords: + needs review, patch
files: + issue16759.diff
messages: + msg178026

stage: needs patch -> patch review
2012-12-24 00:33:58brian.curtinsetdependencies: + winreg SetValueEx DWord type incompatible with value argument
messages: + msg178025
2012-12-24 00:16:51brian.curtincreate