[pywin32-bugs] [ pywin32-Bugs-1842445 ] win32api.RegQueryValueEx cannot obtain perfomance data
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2008-02-09 21:05:56
|
Bugs item #1842445, was opened at 2007-12-01 16:01 Message generated for change (Comment added) made by rupole 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: Closed >Resolution: Fixed 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. ---------------------------------------------------------------------- >Comment By: Roger Upole (rupole) Date: 2008-02-09 16:05 Message: Logged In: YES user_id=771074 Originator: NO This has been fixed in win32apimodule.cpp 1.80. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1842445&group_id=78018 |