diff win/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/win/dw.c	Fri Aug 30 00:07:22 2013 +0000
+++ b/win/dw.c	Thu Sep 05 17:58:40 2013 +0000
@@ -4153,6 +4153,9 @@
    MSG msg;
    void *tmp;
 
+   if(!dialog)
+      return NULL;
+
    while (GetMessage(&msg,NULL,0,0))
    {
       if(msg.hwnd == NULL && msg.message == WM_TIMER)