Commit 2b4f3ec0 authored by Robert North's avatar Robert North Committed by Alexandre Julliard

- Correct overflow 1 message too early.

- Overflow now going onto message queue. - Overflow state correctly or-ed with other packet status.
parent 38b14b4c
...@@ -203,10 +203,10 @@ LPOPENCONTEXT AddPacketToContextQueue(LPWTPACKET packet, HWND hwnd) ...@@ -203,10 +203,10 @@ LPOPENCONTEXT AddPacketToContextQueue(LPWTPACKET packet, HWND hwnd)
DUMPPACKET(*packet); DUMPPACKET(*packet);
if (tgt + 1 == ptr->QueueSize) if (tgt == ptr->QueueSize)
{ {
TRACE("Queue Overflow %p\n",ptr->handle); TRACE("Queue Overflow %p\n",ptr->handle);
packet->pkStatus = TPS_QUEUE_ERR; ptr->PacketQueue[tgt-1].pkStatus |= TPS_QUEUE_ERR;
} }
else else
{ {
......
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