Commit 457a8478 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent d31d2074
......@@ -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;
}
......
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