mirror of
https://github.com/reactos/wine.git
synced 2025-02-22 13:53:38 +00:00
Don't crash if queuing an APC on a thread that doesn't wait.
This commit is contained in:
parent
9dcaeca29f
commit
b8396c3ed8
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user