From: Václav Slavík Date: Tue, 3 Aug 2010 12:59:30 +0000 (+0000) Subject: Fix MSVC warning about int->bool conversion. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a492bccff908b828de50f2e1bafdc5f01bed03f7 Fix MSVC warning about int->bool conversion. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65167 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 3bc63109eb..117141a4ea 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -713,7 +713,7 @@ bool wxWindowMSW::MSWEnableHWND(WXHWND hWnd, bool enable) if ( !enable && ::GetFocus() == hWnd ) Navigate(); - return ::EnableWindow(hWnd, (BOOL)enable); + return ::EnableWindow(hWnd, (BOOL)enable) != 0; } bool wxWindowMSW::Show(bool show)