https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c093d4f8038e7ddec1ca193edc573c48e12f12ff

commit c093d4f8038e7ddec1ca193edc573c48e12f12ff
Author:     Jose Carlos Jesus <zecarlos1...@hotmail.com>
AuthorDate: Sun Nov 20 17:22:30 2022 +0000
Commit:     GitHub <nore...@github.com>
CommitDate: Sun Nov 20 20:22:30 2022 +0300

    [TASKMGR] Prevent context menu on idle process (#4889)
    
    In Win2K3, there is no context menu on the System Idle Process.
    
    CORE-18640
---
 base/applications/taskmgr/procpage.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/base/applications/taskmgr/procpage.c 
b/base/applications/taskmgr/procpage.c
index e916cae8ee0..dd2825d2c91 100644
--- a/base/applications/taskmgr/procpage.c
+++ b/base/applications/taskmgr/procpage.c
@@ -400,6 +400,9 @@ void ProcessPageShowContextMenu(DWORD dwProcessId)
     DWORD        dwDebuggerSize;
     HKEY         hKey;
 
+    if (dwProcessId == 0)
+        return;
+
     memset(&si, 0, sizeof(SYSTEM_INFO));
 
     GetCursorPos(&pt);

Reply via email to