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 Date: Wed, 14 Jul 2004 20:45:40 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs Message-ID: <20040714184540.GZ1389@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i On Jul 14 14:29, Igor Pechtchanski wrote: > Since Dave is not subscribed to cygwin-developers anyway, I'll continue > this here. More below. Ok. That's why I wrote "mildly OT". > Can't for a while. Can you do me a favor and submit this as a fix, if you > have a copyright assignment for Cygwin? If it makes you feel better, feel > free to mention me in the ChangeLog as well. David has no copyright assignment on file so far. But that doesn't matter since the below is definitely a "trivial" patch. Just a ChangeLog entry, please. Corinna > > Index: winsup/cygwin/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 > > --- winsup/cygwin/fhandler_registry.cc 9 Feb 2004 04:04:23 -0000 1.24 > > +++ winsup/cygwin/fhandler_registry.cc 14 Jul 2004 16:47:53 -0000 > > @@ -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) -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Co-Project Leader mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- 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/