Fixed reset of MessageQueue in Clear

This commit is contained in:
akallabeth 2020-11-06 13:02:01 +01:00
parent 6e3c00725a
commit 59ef9a7e8b

View File

@ -297,6 +297,7 @@ int MessageQueue_Clear(wMessageQueue* queue)
queue->size--;
}
ResetEvent(queue->event);
queue->closed = FALSE;
LeaveCriticalSection(&queue->lock);