- fix one locking ignorant return 0; in MSG_SendMessageInterThread()
- fix a crash in QUEUE_RemoveSMSG()
- convert some queue WARN() to ERR()
- spaileng fikses
diff --git a/windows/message.c b/windows/message.c
index 4371f37..765ee58 100644
--- a/windows/message.c
+++ b/windows/message.c
@@ -837,7 +837,10 @@
/* add smsg struct in the pending list of the destination queue */
if (QUEUE_AddSMSG(destQ, SM_PENDING_LIST, smsg) == FALSE)
- return 0;
+ {
+ retVal = 0;
+ goto CLEANUP;
+ }
iWndsLocks = WIN_SuspendWndsLock();
@@ -905,6 +908,7 @@
LeaveCriticalSection( &queue->cSection );
+CLEANUP:
QUEUE_Unlock( queue );
QUEUE_Unlock( destQ );