mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 20:53:35 +00:00
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 );
|
set_error( STATUS_INVALID_PARAMETER );
|
||||||
return;
|
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 )))
|
if ((hook = add_hook( thread, req->id - WH_MINHOOK )))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue