Author: fireball Date: Tue Dec 25 13:45:14 2007 New Revision: 31428
URL: http://svn.reactos.org/svn/reactos?rev=31428&view=rev Log: - Fix incorrect NtSetDebugFilter behavior (Level below 32 should be converted into a mask). Now DbgPrintEx works as expected.
Modified: trunk/reactos/ntoskrnl/kd/kdmain.c
Modified: trunk/reactos/ntoskrnl/kd/kdmain.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kd/kdmain.c?rev=31... ============================================================================== --- trunk/reactos/ntoskrnl/kd/kdmain.c (original) +++ trunk/reactos/ntoskrnl/kd/kdmain.c Tue Dec 25 13:45:14 2007 @@ -337,6 +337,11 @@ KdComponentTable[i].ComponentId = ComponentId; KdComponentTable[i].Level = 0; } + + /* Convert level to mask, if needed */ + if (Level < 32) + Level = 1 << Level; + if ( State ) KdComponentTable[i].Level |= Level; else