- Consistently check for KDBG via if-def, not if (like we do for _WINKD_), everywhere.

svn path=/trunk/; revision=69152
This commit is contained in:
Stefan Ginsberg 2015-09-09 16:06:38 +00:00
parent 27792fe58c
commit c1c6314688
5 changed files with 8 additions and 8 deletions

View file

@ -45,7 +45,7 @@ KdRosDumpStackFrames(
KdSystemDebugControl('DsoR', Backtrace, Count, 0, 0, 0, 0); KdSystemDebugControl('DsoR', Backtrace, Count, 0, 0, 0, 0);
} }
#if KDBG #if defined(KDBG)
FORCEINLINE FORCEINLINE
VOID VOID
KdRosRegisterCliCallback( KdRosRegisterCliCallback(

View file

@ -36,7 +36,7 @@ KdPortPutByteEx(
#if defined(KDBG) || DBG #if defined(KDBG) || DBG
#if KDBG #if defined(KDBG)
typedef typedef
BOOLEAN BOOLEAN
(NTAPI *PKDBG_CLI_ROUTINE)( (NTAPI *PKDBG_CLI_ROUTINE)(

View file

@ -100,7 +100,7 @@ KdpServiceDispatcher(ULONG Service,
break; break;
} }
#if KDBG #if defined(KDBG)
/* Register KDBG CLI callback */ /* Register KDBG CLI callback */
case 'RbdK': case 'RbdK':
{ {

View file

@ -464,7 +464,7 @@ ExpComputePartialHashForAddress(IN PVOID BaseAddress)
VOID VOID
NTAPI NTAPI
INIT_FUNCTION INIT_SECTION
ExpSeedHotTags(VOID) ExpSeedHotTags(VOID)
{ {
ULONG i, Key, Hash, Index; ULONG i, Key, Hash, Index;
@ -794,7 +794,7 @@ ExpInsertPoolTracker(IN ULONG Key,
VOID VOID
NTAPI NTAPI
INIT_FUNCTION INIT_SECTION
ExInitializePoolDescriptor(IN PPOOL_DESCRIPTOR PoolDescriptor, ExInitializePoolDescriptor(IN PPOOL_DESCRIPTOR PoolDescriptor,
IN POOL_TYPE PoolType, IN POOL_TYPE PoolType,
IN ULONG PoolIndex, IN ULONG PoolIndex,
@ -845,7 +845,7 @@ ExInitializePoolDescriptor(IN PPOOL_DESCRIPTOR PoolDescriptor,
VOID VOID
NTAPI NTAPI
INIT_FUNCTION INIT_SECTION
InitializePool(IN POOL_TYPE PoolType, InitializePool(IN POOL_TYPE PoolType,
IN ULONG Threshold) IN ULONG Threshold)
{ {
@ -2669,7 +2669,7 @@ ExAllocatePoolWithQuotaTag(IN POOL_TYPE PoolType,
return Buffer; return Buffer;
} }
#if DBG && KDBG #if DBG && defined(KDBG)
BOOLEAN BOOLEAN
ExpKdbgExtPool( ExpKdbgExtPool(

View file

@ -255,7 +255,7 @@ InitProcessCallback(PEPROCESS Process)
#if DBG #if DBG
DbgInitDebugChannels(); DbgInitDebugChannels();
#if KDBG #if defined(KDBG)
KdRosRegisterCliCallback(DbgGdiKdbgCliCallback); KdRosRegisterCliCallback(DbgGdiKdbgCliCallback);
#endif #endif
#endif #endif