mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 15:04:44 +00:00
server: Wake up APC if we fail to allocate a handle in target process.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
659e585166
commit
41f7f19cb5
|
@ -1500,10 +1500,10 @@ DECL_HANDLER(select)
|
||||||
/* Optimization: ignore APC_NONE calls, they are only used to
|
/* Optimization: ignore APC_NONE calls, they are only used to
|
||||||
* wake up a thread, but since we got here the thread woke up already.
|
* wake up a thread, but since we got here the thread woke up already.
|
||||||
*/
|
*/
|
||||||
if (apc->call.type != APC_NONE)
|
if (apc->call.type != APC_NONE &&
|
||||||
|
(reply->apc_handle = alloc_handle( current->process, apc, SYNCHRONIZE, 0 )))
|
||||||
{
|
{
|
||||||
if ((reply->apc_handle = alloc_handle( current->process, apc, SYNCHRONIZE, 0 )))
|
reply->call = apc->call;
|
||||||
reply->call = apc->call;
|
|
||||||
release_object( apc );
|
release_object( apc );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue