mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
MessageQueue write time to current message not the next
This commit is contained in:
@@ -100,12 +100,13 @@ BOOL MessageQueue_Dispatch(wMessageQueue* queue, wMessage* message)
|
||||
}
|
||||
|
||||
CopyMemory(&(queue->array[queue->tail]), message, sizeof(wMessage));
|
||||
queue->tail = (queue->tail + 1) % queue->capacity;
|
||||
queue->size++;
|
||||
|
||||
message = &(queue->array[queue->tail]);
|
||||
message->time = GetTickCount64();
|
||||
|
||||
queue->tail = (queue->tail + 1) % queue->capacity;
|
||||
queue->size++;
|
||||
|
||||
if (queue->size > 0)
|
||||
SetEvent(queue->event);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user