delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/14/14:30:18

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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" <dk AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: [OT] RE: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs
Date: Wed, 14 Jul 2004 19:28:19 +0100
MIME-Version: 1.0
In-Reply-To: <NUTMEG8r6beUzmRf6Ci000008a9@NUTMEG.CAM.ARTIMI.COM>
Message-ID: <NUTMEG1TbdkSmLAztxc000008ae@NUTMEG.CAM.ARTIMI.COM>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019