From a7b993600894b8416782b6fd06ef01b6efc345be Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Mon, 15 Sep 2003 19:57:11 +0000 Subject: [PATCH] Move packet linked list tail forward correctly on push. --- dlls/rpcrt4/rpc_server.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/rpcrt4/rpc_server.c b/dlls/rpcrt4/rpc_server.c index 2ab7f5fd3ff..e9ed5931815 100644 --- a/dlls/rpcrt4/rpc_server.c +++ b/dlls/rpcrt4/rpc_server.c @@ -117,8 +117,10 @@ static void RPCRT4_push_packet(RpcPacket* packet) { packet->next = NULL; EnterCriticalSection(&spacket_cs); - if (spacket_tail) spacket_tail->next = packet; - else { + if (spacket_tail) { + spacket_tail->next = packet; + spacket_tail = packet; + } else { spacket_head = packet; spacket_tail = packet; }