Mail Archives: djgpp-workers/2001/12/12/03:30:07
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.
- Raw text -