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: "Bernard A Badger" To: Subject: RE: Re[2]: Rebase 1.5-1: Causes invalid page fault Date: Wed, 19 Jun 2002 09:44:10 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal In-Reply-To: <776628761.20020618224110@gmx.net> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 > -----Original Message----- > From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf > Of Pavel Tsekov > Sent: Tuesday, June 18, 2002 4:41 PM > To: cygwin AT cygwin DOT com > Subject: Re[2]: Rebase 1.5-1: Causes invalid page fault > > > JT> On Tue, Jun 18, 2002 at 06:04:31PM +0200, Pavel Tsekov wrote: > >> You printed just the first argument. There is a total of 11 arguments > >> to this function. > >> > >> BOOL ReBaseImage( > >> PSTR CurrentImageName, [SNIP] > >> ULONG_PTR *OldImageBase, > JT> ^^^^ > JT> **** > >> ULONG *NewImageSize, > >> ULONG_PTR *NewImageBase, > JT> ^^^^ > JT> **** > >> ULONG TimeStamp > >> ); > > JT> The ULONG_PTR above is causing me some concern. Note that the above > JT> signature does *not* agree with the header file (either MinGW or MSVC) > JT> and I cannot find the definition of ULONG_PTR. Is the above a typo in > JT> the MSDN or are OldImageBase and NewImageBase really suppose to be a > JT> pointer to pointer? > > The above is from help library that is coming with the downloadable > Platform SDK. It is dated November, 2001. > > I just grepped /usr/include/w32api: > > ./basetsd.h:100:typedef unsigned long ULONG_PTR, *PULONG_PTR; > > So it is not a pointer to pointer. They have chosen a strange name > though :) Which "it"? I thought the concern was whether -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/