[ros-diffs] [arty] 35284: Harden 'proc list'

arty at svn.reactos.org arty at svn.reactos.org
Tue Aug 12 08:59:38 CEST 2008


Author: arty
Date: Tue Aug 12 01:59:37 2008
New Revision: 35284

URL: http://svn.reactos.org/svn/reactos?rev=35284&view=rev
Log:
Harden 'proc list'

Modified:
    trunk/reactos/ntoskrnl/kdbg/kdb_cli.c

Modified: trunk/reactos/ntoskrnl/kdbg/kdb_cli.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kdbg/kdb_cli.c?rev=35284&r1=35283&r2=35284&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/kdbg/kdb_cli.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/kdbg/kdb_cli.c [iso-8859-1] Tue Aug 12 01:59:37 2008
@@ -1266,7 +1266,7 @@
    if (Argc >= 2 && _stricmp(Argv[1], "list") == 0)
    {
       Entry = PsActiveProcessHead.Flink;
-      if (Entry == &PsActiveProcessHead)
+      if (!Entry || Entry == &PsActiveProcessHead)
       {
          KdbpPrint("No processes in the system!\n");
          return TRUE;



More information about the Ros-diffs mailing list