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.

Author ocean-city
Recipients brian.curtin, kzmi, ocean-city, tim.golden, vstinner
Date 2010-09-26.05:40:55
SpamBayes Score 0.0002186185
Marked as misclassified No
Message-id <1285479658.42.0.203284323708.issue9937@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry, my patch didn't pass test_dynamic_key(test_winreg).
(Apologize for not testing on unit test)

RegEnumValueA and RegQueryInfoKeyA always returned 0 for 
required data size if target is HKEY_PERFORMANCE_DATA.

The possible fixes I can imagine are...

1. Use GetCPInfo() to get MaxCharSize.
http://msdn.microsoft.com/en-us/library/dd317780%28v=VS.85%29.aspx
We can get a large value enough to store the key name in ANSI by
"The length in Unicode" * MaxCharSize.

2. Use RegEnumValueW and convert result via WideCharToMultiByte

I'll attach the patch with option 1.
History
Date User Action Args
2010-09-26 05:40:59ocean-citysetrecipients: + ocean-city, vstinner, tim.golden, brian.curtin, kzmi
2010-09-26 05:40:58ocean-citysetmessageid: <1285479658.42.0.203284323708.issue9937@psf.upfronthosting.co.za>
2010-09-26 05:40:56ocean-citylinkissue9937 messages
2010-09-26 05:40:56ocean-citycreate