Message-ID: <00be01c33377$da924650$0600000a@broadpark.no> From: "Gisle Vanem" To: "djgpp" Subject: Re: mprotect() under Windows Date: Sun, 15 Jun 2003 21:53:55 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Reply-To: djgpp AT delorie DOT com D*mn, the djgpp mailing-list processor doesn't add a "Reply-to" field. So I'm resending this to the list. "Richard Dawe" said: > It seems like __dpmi_set_page_attributes ignores the return code. See > src/libc/dpmi/d507.S. It doesn't check to see if carry is set on failure and > clears EAX. > > This smells like a bug to me. d507.S uses the macro DPMI() which does honour the carry flag and set EAX = -1 if it was on. See dpmidefs.h. My guess is that NTVDM silently ignores that function. I tried the same code under plain DOS with CWSDPMI and DPMI-one. They both crashed the test-program as they should. --gv