Commit 41f7f19c authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

server: Wake up APC if we fail to allocate a handle in target process.

parent 659e5851
...@@ -1500,10 +1500,10 @@ DECL_HANDLER(select) ...@@ -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;
} }
......
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