Fix COM_ExternalLockFreeList to do not fail with an empty list.

This commit is contained in:
Sylvain St.Germain 1999-02-24 09:42:30 +00:00 committed by Alexandre Julliard
parent 6d7773c974
commit b0191cc642
1 changed files with 3 additions and 4 deletions

View File

@ -1607,14 +1607,13 @@ static void COM_ExternalLockFreeList()
{
COM_ExternalLock *head;
do
head = elList.head; /* grab it by the head */
while ( head != EL_END_OF_LIST )
{
head = elList.head; /* grab it be the head */
COM_ExternalLockDelete(head); /* get rid of the head stuff */
head = elList.head; /* get the new head... */
} while ( head != EL_END_OF_LIST ); /* repeat as long as we have heads */
}
}
/****************************************************************************