This commit is contained in:
VincentWei
2018-05-19 15:13:12 +08:00
parent 0b9c425b84
commit 378f7e1986
3 changed files with 5 additions and 2 deletions
+1
View File
@@ -3529,6 +3529,7 @@ void GUIAPI MainWindowThreadCleanup (HWND hMainWnd)
#ifdef _MGRM_THREADS
if (pWin->pHosting == NULL) {
mg_FreeMsgQueueThisThread ();
_MG_PRINTF ("GUI>Window: Message queure is freed: %p (%s)\n", pWin, pWin->spCaption);
}
#endif
+1 -1
View File
@@ -599,7 +599,7 @@ static inline MSGQUEUE* GetMsgQueueThisThread (void)
pMsgQueue = (MSGQUEUE*) pthread_getspecific (__mg_threadinfo_key);
#ifdef __VXWORKS__
if (pMsgQueue == (void *)-1) {
return NULL;
return NULL;
}
#endif
return pMsgQueue;
+3 -1
View File
@@ -485,8 +485,10 @@ BOOL PeekMessageEx (PMSG pMsg, HWND hWnd, UINT nMsgFilterMin, UINT nMsgFilterMax
return FALSE;
#ifdef _MGRM_THREADS
if (!(pMsgQueue = GetMsgQueueThisThread ()))
if (!(pMsgQueue = GetMsgQueueThisThread ())) {
_MG_PRINTF ("Kernel>message: no message queue.\n");
return FALSE;
}
#else
pMsgQueue = __mg_dsk_msg_queue;
#endif