From c093d4f8038e7ddec1ca193edc573c48e12f12ff Mon Sep 17 00:00:00 2001 From: Jose Carlos Jesus Date: Sun, 20 Nov 2022 17:22:30 +0000 Subject: [PATCH] [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);