From c21a911c8949fa0d0fd821513ae30642e950a484 Mon Sep 17 00:00:00 2001 From: Andreas Mohr Date: Sat, 1 May 1999 10:20:18 +0000 Subject: [PATCH] Added a missing LeaveCriticalSection. --- windows/queue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/windows/queue.c b/windows/queue.c index 8e2bd490d2c..595be9c2929 100644 --- a/windows/queue.c +++ b/windows/queue.c @@ -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; }