Message117403
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. |
|
Date |
User |
Action |
Args |
2010-09-26 05:40:59 | ocean-city | set | recipients:
+ ocean-city, vstinner, tim.golden, brian.curtin, kzmi |
2010-09-26 05:40:58 | ocean-city | set | messageid: <1285479658.42.0.203284323708.issue9937@psf.upfronthosting.co.za> |
2010-09-26 05:40:56 | ocean-city | link | issue9937 messages |
2010-09-26 05:40:56 | ocean-city | create | |
|