X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f Date: Wed, 12 Dec 2001 10:26:11 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Charles Sandmann cc: djgpp-workers AT delorie DOT com, acottrel AT ihug DOT com DOT au Subject: Re: go32-v2 memory chompage [was: Re: v2.03 refresh ...] In-Reply-To: <10112120307.AA24007@clio.rice.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Tue, 11 Dec 2001, Charles Sandmann wrote: > Triggered memories of differences. Sure enough, I set the stubinfo size > to a truncated value (0x44) when v2load'ing. We could use this to > decide, since the real stub has never used a stubinfo this short (at > least not since pre-beta 2.00 development... This requires no changes > to v2load or go32-v2, small change to dpmiexcp. > > If testing is OK will commit for both v2_03_1 and CVS. > > void __maybe_fix_w2k_ntvdm_bug(void) > { > if (_osmajor == 5 && _get_dos_version(1) == 0x532) /* Windows NT, 2000 or XP > { > + if(_stubinfo->size < STUBINFO_END) /* V2load'ed image, stubinfo PSP bad */ This change is okay, but please make the comment above explain why this test means it's v2load'ed. I was stumped by it when I saw it in the mail notification of CVS commits, until I've read this message of yours.