Alexandre Julliard : kernelbase: Fix process access rights in DebugActiveProcess().
Alexandre Julliard
julliard at winehq.org
Fri May 21 14:19:45 CDT 2021
Module: wine
Branch: master
Commit: 036f1f3b8313a9e3141fe7ee2d936ca93e534c2e
URL: https://source.winehq.org/git/wine.git/?a=commit;h=036f1f3b8313a9e3141fe7ee2d936ca93e534c2e
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri May 21 18:10:13 2021 +0200
kernelbase: Fix process access rights in DebugActiveProcess().
PROCESS_QUERY_INFORMATION is needed to check the Wow64 status.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/kernelbase/debug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/kernelbase/debug.c b/dlls/kernelbase/debug.c
index 207c04da50c..08af7fad5ba 100644
--- a/dlls/kernelbase/debug.c
+++ b/dlls/kernelbase/debug.c
@@ -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 );
More information about the wine-cvs
mailing list