Commit a7b99360 authored by Mike Hearn's avatar Mike Hearn Committed by Alexandre Julliard

Move packet linked list tail forward correctly on push.

parent e2bea180
...@@ -117,8 +117,10 @@ static void RPCRT4_push_packet(RpcPacket* packet) ...@@ -117,8 +117,10 @@ static void RPCRT4_push_packet(RpcPacket* packet)
{ {
packet->next = NULL; packet->next = NULL;
EnterCriticalSection(&spacket_cs); EnterCriticalSection(&spacket_cs);
if (spacket_tail) spacket_tail->next = packet; if (spacket_tail) {
else { spacket_tail->next = packet;
spacket_tail = packet;
} else {
spacket_head = packet; spacket_head = packet;
spacket_tail = packet; spacket_tail = packet;
} }
......
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