Author: sir_richard
Date: Wed May 12 02:36:52 2010
New Revision: 47159
URL:
http://svn.reactos.org/svn/reactos?rev=47159&view=rev
Log:
[NTOS]: Restore previous correct ASM behavior of checking for success codes, not only
STATUS_SUCCESS, after a page fault. For example, a demand zero fault returns
STATUS_PAGE_FAULT_DEMAND_ZERO upon success, and the new C code would treat it as a
failure. Fixes a bug.
Modified:
trunk/reactos/ntoskrnl/ke/i386/traphdlr.c
Modified: trunk/reactos/ntoskrnl/ke/i386/traphdlr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/i386/traphdlr.…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/i386/traphdlr.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/i386/traphdlr.c [iso-8859-1] Wed May 12 02:36:52 2010
@@ -1206,7 +1206,7 @@
(PVOID)Cr2,
TrapFrame->SegCs & MODE_MASK,
TrapFrame);
- if (Status == STATUS_SUCCESS) KiEoiHelper(TrapFrame);
+ if (NT_SUCCESS(Status)) KiEoiHelper(TrapFrame);
/* Check for S-LIST fault */
if (TrapFrame->Eip == (ULONG_PTR)ExpInterlockedPopEntrySListFault)