comparison 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
comparison
equal deleted inserted replaced
1885:0768bbcf67e5 1886:f7d408a47752
4151 void * API dw_dialog_wait(DWDialog *dialog) 4151 void * API dw_dialog_wait(DWDialog *dialog)
4152 { 4152 {
4153 MSG msg; 4153 MSG msg;
4154 void *tmp; 4154 void *tmp;
4155 4155
4156 if(!dialog)
4157 return NULL;
4158
4156 while (GetMessage(&msg,NULL,0,0)) 4159 while (GetMessage(&msg,NULL,0,0))
4157 { 4160 {
4158 if(msg.hwnd == NULL && msg.message == WM_TIMER) 4161 if(msg.hwnd == NULL && msg.message == WM_TIMER)
4159 _wndproc(msg.hwnd, msg.message, msg.wParam, msg.lParam); 4162 _wndproc(msg.hwnd, msg.message, msg.wParam, msg.lParam);
4160 else 4163 else