[TASKMGR] Prevent context menu on idle process (#4889)

In Win2K3, there is no context menu on the System Idle Process.

CORE-18640
This commit is contained in:
Jose Carlos Jesus 2022-11-20 17:22:30 +00:00 committed by GitHub
parent f125cd1c71
commit c093d4f803
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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);