Added a missing LeaveCriticalSection.

This commit is contained in:
Andreas Mohr 1999-05-01 10:20:18 +00:00 committed by Alexandre Julliard
parent d753a999b1
commit c21a911c89
1 changed files with 2 additions and 1 deletions

View File

@ -325,7 +325,7 @@ MESSAGEQUEUE *QUEUE_Lock( HQUEUE16 hQueue )
/***********************************************************************
* QUEUE_Unlock
*
* Use with QUEUE_Lock to get a thread safe acces to message queue
* Use with QUEUE_Lock to get a thread safe access to message queue
* structure
*/
void QUEUE_Unlock( MESSAGEQUEUE *queue )
@ -848,6 +848,7 @@ SMSG *QUEUE_RemoveSMSG( MESSAGEQUEUE *queue, int list, SMSG *smsg )
else
{
ERR( sendmsg, "should always remove the top one in Pending list, smsg=0x%p queue=0x%p", smsg, queue);
LeaveCriticalSection( &queue->cSection );
return 0;
}