]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix MSVC warning about int->bool conversion.
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 3 Aug 2010 12:59:30 +0000 (12:59 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 3 Aug 2010 12:59:30 +0000 (12:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65167 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 3bc63109eba7c333c3b2826428adff8cda0b2eb4..117141a4ead55b40547e34d27a5db2635cbeea4f 100644 (file)
@@ -713,7 +713,7 @@ bool wxWindowMSW::MSWEnableHWND(WXHWND hWnd, bool enable)
     if ( !enable && ::GetFocus() == hWnd )
         Navigate();
 
     if ( !enable && ::GetFocus() == hWnd )
         Navigate();
 
-    return ::EnableWindow(hWnd, (BOOL)enable);
+    return ::EnableWindow(hWnd, (BOOL)enable) != 0;
 }
 
 bool wxWindowMSW::Show(bool show)
 }
 
 bool wxWindowMSW::Show(bool show)