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; }