Commit b0191cc6 authored by Sylvain St.Germain's avatar Sylvain St.Germain Committed by Alexandre Julliard

Fix COM_ExternalLockFreeList to do not fail with an empty list.

parent 6d7773c9
......@@ -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 */
}
}
/****************************************************************************
......
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