Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Dave Korn" To: Subject: RE: [OT] RE: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs Date: Wed, 14 Jul 2004 19:28:19 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit In-Reply-To: Message-ID: X-OriginalArrivalTime: 14 Jul 2004 18:28:19.0781 (UTC) FILETIME=[56748F50:01C469D0] > -----Original Message----- > From: cygwin-owner On Behalf Of Dave Korn > Sent: 14 July 2004 18:26 > Well, the thread's more-or-less over now, I would have thought. Heh. It occurs to me to correct that typo while we're at it. Should have done that first time round. dk AT mace /usr/build/src/winsup/cygwin> cvs -q -z9 diff -pu Index: fhandler_registry.cc =================================================================== RCS file: /cvs/src/src/winsup/cygwin/fhandler_registry.cc,v retrieving revision 1.24 diff -p -u -r1.24 fhandler_registry.cc --- fhandler_registry.cc 9 Feb 2004 04:04:23 -0000 1.24 +++ fhandler_registry.cc 14 Jul 2004 18:27:49 -0000 @@ -48,7 +48,7 @@ static const char *registry_listing[] = "HKEY_LOCAL_MACHINE", "HKEY_USERS", "HKEY_DYN_DATA", // 95/98/Me - "HKEY_PERFOMANCE_DATA", // NT/2000/XP + "HKEY_PERFORMANCE_DATA", // NT/2000/XP NULL }; @@ -575,6 +575,7 @@ fhandler_registry::fill_filebuf () { bufalloc += 1000; filebuf = (char *) realloc (filebuf, bufalloc); + size = bufalloc; error = RegQueryValueEx (handle, value_name, NULL, &type, (BYTE *) filebuf, &size); if (error != ERROR_SUCCESS && error != ERROR_MORE_DATA) cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/