[NTOSKRNL]
[reactos.git] / 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;
-#ifdef TRAP_DEBUG
+
+    /* Set some debug fields if trap debugging is enabled */
+#if TRAP_DEBUG
     TrapFrame->DbgArgMark = 0xBADB0D00;
     TrapFrame->PreviousPreviousMode = -1;
 #endif