comparison os2/dw.c @ 1886:f7d408a47752

Fix a couple of errors reported by the static analyzer on Mac.... Also added similar fixes to the other platforms as well just in case.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 05 Sep 2013 17:58:40 +0000
parents 71780cf68aa2
children 09860ba329a4
comparison
equal deleted inserted replaced
1885:0768bbcf67e5 1886:f7d408a47752
4635 void * API dw_dialog_wait(DWDialog *dialog) 4635 void * API dw_dialog_wait(DWDialog *dialog)
4636 { 4636 {
4637 QMSG qmsg; 4637 QMSG qmsg;
4638 void *tmp; 4638 void *tmp;
4639 4639
4640 if(!dialog)
4641 return NULL;
4642
4640 while (WinGetMsg(dwhab, &qmsg, 0, 0, 0)) 4643 while (WinGetMsg(dwhab, &qmsg, 0, 0, 0))
4641 { 4644 {
4642 if(qmsg.msg == WM_TIMER && qmsg.hwnd == NULLHANDLE) 4645 if(qmsg.msg == WM_TIMER && qmsg.hwnd == NULLHANDLE)
4643 _run_event(qmsg.hwnd, qmsg.msg, qmsg.mp1, qmsg.mp2); 4646 _run_event(qmsg.hwnd, qmsg.msg, qmsg.mp1, qmsg.mp2);
4644 WinDispatchMsg(dwhab, &qmsg); 4647 WinDispatchMsg(dwhab, &qmsg);