Move packet linked list tail forward correctly on push.

This commit is contained in:
Mike Hearn 2003-09-15 19:57:11 +00:00 committed by Alexandre Julliard
parent e2bea18081
commit a7b9936008
1 changed files with 4 additions and 2 deletions

View File

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