Author: sginsberg
Date: Wed Sep  9 14:00:43 2015
New Revision: 69148

URL: http://svn.reactos.org/svn/reactos?rev=69148&view=rev
Log:
Some of this sneaked past in my last commit, so commit the rest:
- Wrap some KDBG-only stuff into KDBG-define so we don't have 
KdSystemDebugControl being called needlessly on KD-builds.

Modified:
    trunk/reactos/drivers/input/i8042prt/keyboard.c
    trunk/reactos/win32ss/gdi/ntgdi/gdidebug.h

Modified: trunk/reactos/drivers/input/i8042prt/keyboard.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/input/i8042prt/keyboard.c?rev=69148&r1=69147&r2=69148&view=diff
==============================================================================
--- trunk/reactos/drivers/input/i8042prt/keyboard.c     [iso-8859-1] (original)
+++ trunk/reactos/drivers/input/i8042prt/keyboard.c     [iso-8859-1] Wed Sep  9 
14:00:43 2015
@@ -862,6 +862,7 @@
                 /* b - Bugcheck */
                 KeBugCheck(MANUALLY_INITIATED_CRASH);
             }
+#if defined(KDBG)
             else
             {
                            /* Send request to the kernel debugger.
@@ -874,6 +875,7 @@
                                                 NULL,
                                                 KernelMode);
             }
+#endif
                }
        }
 

Modified: trunk/reactos/win32ss/gdi/ntgdi/gdidebug.h
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/gdidebug.h?rev=69148&r1=69147&r2=69148&view=diff
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/gdidebug.h  [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/gdidebug.h  [iso-8859-1] Wed Sep  9 
14:00:43 2015
@@ -2,7 +2,7 @@
 
 #define GDI_DBG_MAX_BTS 10
 
-#if DBG
+#if DBG && defined(KDBG)
 #define ASSERT_NOGDILOCKS() GdiDbgAssertNoLocks(__FILE__,__LINE__)
 #define KeRosDumpStackFrames(Frames, Count) \
     KdSystemDebugControl('DsoR', (PVOID)Frames, Count, NULL, 0, NULL, 
KernelMode)
@@ -36,7 +36,7 @@
 
 #endif
 
-#if KDBG
+#if defined(KDBG)
 
 BOOLEAN
 NTAPI


Reply via email to