[KDBG] Let's try to have one single version of DPFLTR_DEFAULT_ID shall we -- 101 as part of DPFLTR_TYPE enum is correct, 0xFFFFFFFF as an incorrect define for the "internal" default ID is wrong.

svn path=/trunk/; revision=69355
This commit is contained in:
Stefan Ginsberg 2015-09-25 19:28:05 +00:00
parent 0ad0cb4df8
commit d8105a4366
3 changed files with 3 additions and 4 deletions

View file

@ -90,7 +90,6 @@ RtlAssert(
#define __NOTICE(level, fmt, ...) DbgPrint(#level ": %s at %s:%d " fmt, __FUNCTION__, __RELFILE__, __LINE__, ##__VA_ARGS__)
/* Print stuff only on Debug Builds*/
#define DPFLTR_DEFAULT_ID -1
#if DBG
/* These are always printed */

View file

@ -377,7 +377,7 @@ NtQueryDebugFilterState(IN ULONG ComponentId,
Level = 1 << Level;
/* Check if it is not the default component */
if (ComponentId != DPFLTR_DEFAULT_ID)
if (ComponentId != MAXULONG)
{
/* No, search for an existing entry in the table */
for (i = 0; i < KdComponentTableEntries; i++)
@ -409,7 +409,7 @@ NtSetDebugFilterState(IN ULONG ComponentId,
Level &= ~DPFLTR_MASK;
/* Check if it is the default component */
if (ComponentId == DPFLTR_DEFAULT_ID)
if (ComponentId == MAXULONG)
{
/* Yes, modify the default mask */
if (State)

View file

@ -210,7 +210,7 @@ KdbpGetComponentId(
}
ComponentTable[] =
{
{ "DEFAULT", DPFLTR_DEFAULT_ID },
{ "DEFAULT", MAXULONG },
{ "SYSTEM", DPFLTR_SYSTEM_ID },
{ "SMSS", DPFLTR_SMSS_ID },
{ "SETUP", DPFLTR_SETUP_ID },