Alexandre Julliard : server: Only avoid running low-level hooks in processes currently suspended by a debugger .

Alexandre Julliard julliard at winehq.org
Fri Jun 17 13:13:46 CDT 2011


Module: wine
Branch: master
Commit: 457a84784903057a299a4c419a6c49c0eca3b8c7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=457a84784903057a299a4c419a6c49c0eca3b8c7

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Jun 17 11:54:29 2011 +0200

server: Only avoid running low-level hooks in processes currently suspended by a debugger.

---

 server/hook.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/hook.c b/server/hook.c
index 180ddf1..3abd8d9 100644
--- a/server/hook.c
+++ b/server/hook.c
@@ -207,8 +207,8 @@ static inline int run_hook_in_current_thread( struct hook *hook )
     if ((hook->flags & WINEVENT_SKIPOWNPROCESS) && hook->process == current->process) return 0;
     if (hook->thread && hook->thread != current) return 0;
     if ((hook->flags & WINEVENT_SKIPOWNTHREAD) && hook->thread == current) return 0;
-    /* don't run low-level hooks in debugged processes */
-    if (run_hook_in_owner_thread( hook ) && hook->owner->process->debugger) return 0;
+    /* don't run low-level hooks in processes suspended for debugging */
+    if (run_hook_in_owner_thread( hook ) && hook->owner->process->suspend) return 0;
     return 1;
 }
 




More information about the wine-cvs mailing list