Don't crash if queuing an APC on a thread that doesn't wait.

This commit is contained in:
Ulrich Weigand 1999-05-02 11:33:01 +00:00 committed by Alexandre Julliard
parent 9dcaeca29f
commit b8396c3ed8
1 changed files with 1 additions and 1 deletions

View File

@ -511,7 +511,7 @@ int thread_queue_apc( struct thread *thread, void *func, void *param )
thread->apc[thread->apc_count].func = func;
thread->apc[thread->apc_count].param = param;
thread->apc_count++;
wake_thread( thread );
if (thread->wait) wake_thread( thread );
return 1;
}