Commit 4bfd0a23 authored by Shaun Ren's avatar Shaun Ren Committed by Alexandre Julliard

sapi: Handle queue not initialized in async_empty_queue.

parent 5f3dee97
......@@ -52,6 +52,8 @@ void async_empty_queue(struct async_queue *queue)
{
struct async_task *task, *next;
if (!queue->init) return;
EnterCriticalSection(&queue->cs);
LIST_FOR_EACH_ENTRY_SAFE(task, next, &queue->tasks, struct async_task, entry)
{
......
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