[TASKMGR] Prevent context menu on idle process (#4889)
authorJose Carlos Jesus <zecarlos1957@hotmail.com>
Sun, 20 Nov 2022 17:22:30 +0000 (17:22 +0000)
committerGitHub <noreply@github.com>
Sun, 20 Nov 2022 17:22:30 +0000 (20:22 +0300)
In Win2K3, there is no context menu on the System Idle Process.

CORE-18640

base/applications/taskmgr/procpage.c

index e916cae..dd2825d 100644 (file)
@@ -400,6 +400,9 @@ void ProcessPageShowContextMenu(DWORD dwProcessId)
     DWORD        dwDebuggerSize;
     HKEY         hKey;
 
+    if (dwProcessId == 0)
+        return;
+
     memset(&si, 0, sizeof(SYSTEM_INFO));
 
     GetCursorPos(&pt);