delorie.com/archives/browse.cgi | search |
Message-ID: | <00be01c33377$da924650$0600000a@broadpark.no> |
From: | "Gisle Vanem" <giva AT bgnett DOT no> |
To: | "djgpp" <djgpp AT delorie DOT com> |
Subject: | Re: mprotect() under Windows |
Date: | Sun, 15 Jun 2003 21:53:55 +0200 |
MIME-Version: | 1.0 |
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" <rich AT phekda DOT freeserve DOT co DOT uk> 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |