]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
make sure we don't use uninitalized output stream in OnSysWrite() (coverity checked...
[wxWidgets.git] / src / msw / window.cpp
index 7872678a64da4da7cca18ed3bab2d395063798c9..a80bee3a537e89cdf20fc5b5934a405e74a42a92 100644 (file)
@@ -2614,9 +2614,10 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l
                         
                         evtCtx.SetEventObject(this);
                         if (GetEventHandler()->ProcessEvent(evtCtx))
+                        {
                             processed = true;
-                        else
-                            return MSWDefWindowProc(message, wParam, lParam);
+                            return true;
+                        }
                     }
                 }
 #endif