Commit 036f1f3b authored by Alexandre Julliard's avatar Alexandre Julliard

kernelbase: Fix process access rights in DebugActiveProcess().

PROCESS_QUERY_INFORMATION is needed to check the Wow64 status. Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 771e9260
...@@ -91,7 +91,7 @@ BOOL WINAPI DECLSPEC_HOTPATCH DebugActiveProcess( DWORD pid ) ...@@ -91,7 +91,7 @@ BOOL WINAPI DECLSPEC_HOTPATCH DebugActiveProcess( DWORD pid )
if (!set_ntstatus( DbgUiConnectToDbg() )) return FALSE; if (!set_ntstatus( DbgUiConnectToDbg() )) return FALSE;
if (!(process = OpenProcess( PROCESS_VM_READ | PROCESS_VM_WRITE | PROCESS_SUSPEND_RESUME | 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; return FALSE;
status = DbgUiDebugActiveProcess( process ); status = DbgUiDebugActiveProcess( process );
NtClose( process ); NtClose( process );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment