diff 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
line wrap: on
line diff
--- a/os2/dw.c	Fri Aug 30 00:07:22 2013 +0000
+++ b/os2/dw.c	Thu Sep 05 17:58:40 2013 +0000
@@ -4637,6 +4637,9 @@
    QMSG qmsg;
    void *tmp;
 
+   if(!dialog)
+      return NULL;
+
    while (WinGetMsg(dwhab, &qmsg, 0, 0, 0))
    {
       if(qmsg.msg == WM_TIMER && qmsg.hwnd == NULLHANDLE)