Work around to make system-global hooks at least run in the thread
that set them.
This commit is contained in:
parent
cf2e57d0c7
commit
775fcfdee5
|
@ -227,7 +227,8 @@ DECL_HANDLER(set_hook)
|
|||
set_error( STATUS_INVALID_PARAMETER );
|
||||
return;
|
||||
}
|
||||
if (!(thread = get_thread_from_id( req->tid ))) return;
|
||||
if (!req->tid) thread = (struct thread *)grab_object( current );
|
||||
else if (!(thread = get_thread_from_id( req->tid ))) return;
|
||||
|
||||
if ((hook = add_hook( thread, req->id - WH_MINHOOK )))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue