[NTOSKRNL]
authorStefan Ginsberg <stefanginsberg@gmail.com>
Sun, 19 Feb 2012 10:38:38 +0000 (10:38 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Sun, 19 Feb 2012 10:38:38 +0000 (10:38 +0000)
- Fix KiEnterV86Mode's check for TRAP_DEBUG to #if instead of #ifdef, it is either defined to 1 or 0, like DBG.

svn path=/trunk/; revision=55709

reactos/ntoskrnl/ke/i386/v86vdm.c

index 7818e1c..c083bc4 100644 (file)
@@ -526,7 +526,9 @@ KiEnterV86Mode(IN PKV8086_STACK_FRAME StackFrame)
     TrapFrame->HardwareEsp = 0x11FFE;
     TrapFrame->ExceptionList = EXCEPTION_CHAIN_END;
     TrapFrame->Dr7 = 0;
     TrapFrame->HardwareEsp = 0x11FFE;
     TrapFrame->ExceptionList = EXCEPTION_CHAIN_END;
     TrapFrame->Dr7 = 0;
-#ifdef TRAP_DEBUG
+
+    /* Set some debug fields if trap debugging is enabled */
+#if TRAP_DEBUG
     TrapFrame->DbgArgMark = 0xBADB0D00;
     TrapFrame->PreviousPreviousMode = -1;
 #endif
     TrapFrame->DbgArgMark = 0xBADB0D00;
     TrapFrame->PreviousPreviousMode = -1;
 #endif