kernelbase: Fix process access rights in DebugActiveProcess().

PROCESS_QUERY_INFORMATION is needed to check the Wow64 status.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-05-21 18:10:13 +02:00
parent 771e9260f8
commit 036f1f3b83
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ BOOL WINAPI DECLSPEC_HOTPATCH DebugActiveProcess( DWORD pid )
if (!set_ntstatus( DbgUiConnectToDbg() )) return FALSE;
if (!(process = OpenProcess( PROCESS_VM_READ | PROCESS_VM_WRITE | PROCESS_SUSPEND_RESUME |
PROCESS_CREATE_THREAD, FALSE, pid )))
PROCESS_QUERY_INFORMATION | PROCESS_CREATE_THREAD, FALSE, pid )))
return FALSE;
status = DbgUiDebugActiveProcess( process );
NtClose( process );