This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [Patch] Allow access to /proc/registry/HKEY_PERFORMANCE_DATA
- From: "Chris January" <chris at atomice dot net>
- To: cygwin-patches at cygwin dot com
- Date: Fri, 19 Dec 2008 15:27:32 +0000
- Subject: Re: [Patch] Allow access to /proc/registry/HKEY_PERFORMANCE_DATA
- References: <494BA890.8000004@t-online.de> <2ce9650b0812190705v520e1be1h779e88196c942b9d@mail.gmail.com>
On Fri, Dec 19, 2008 at 1:58 PM, Christian Franke wrote:
> (fhandler_registry::fill_filebuf): Use larger buffer to speed up
> access to HKEY_PERFORMANCE_DATA values. Remove check for possible
> subkey. Add RegCloseKey ().
+ /* RegQueryValueEx () opens HKEY_PERFORMANCE_DATA. */
+ RegCloseKey (handle);
I'm slightly puzzled by this change. handle is usually closed in
fhandler_register::close. If you close it here then won't CloseHandle
be called with an invalid handle in that method?
Chris