Bugs item #1842445, was opened at 2007-12-02 00:01
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1842445&group_id=78018
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Vano (native_api)
Assigned to: Nobody/Anonymous (nobody)
Summary: win32api.RegQueryValueEx cannot obtain perfomance data
Initial Comment:
"Performance data" is HKEY_PERFORMANCE_DATA or HKLM\Software\Microsoft\Windows NT\CurrentVersion\Perflib values.
The problem is caused by a special behaviour of the underlying API in this case. The call at win32apimodule.cpp:3575 doesn't return size to bufSize but simply fails with ERROR_MORE_DATA (and so does the whole function).
Attached is the diff that adds handling of this special situation. It assumes that this is the only case where RegQueryValueEx emits ERROR_MORE_DATA given NULL as lpData.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1842445&group_id=78018
|