mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
Harden 'proc list'
svn path=/trunk/; revision=35284
This commit is contained in:
@@ -1266,7 +1266,7 @@ KdbpCmdProc(ULONG Argc, PCHAR Argv[])
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user