From: Vadim Zeitlin Date: Mon, 20 Jun 2005 00:22:56 +0000 (+0000) Subject: (harmless) eVC4 release mode warning fix X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/30b9db02451bef92bb6e25ade8c44dfa2271ba22 (harmless) eVC4 release mode warning fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34712 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/wince/tbarwce.cpp b/src/msw/wince/tbarwce.cpp index ae471ff2fd..5070ce3f66 100644 --- a/src/msw/wince/tbarwce.cpp +++ b/src/msw/wince/tbarwce.cpp @@ -479,9 +479,10 @@ bool wxToolMenuBar::Realize() break; } - BOOL bRc = ::CommandBar_AddButtons( (HWND) GetHWND(), 1, buttons ); - - wxASSERT_MSG( bRc, wxT("Could not add toolbar button.")); + if ( !::CommandBar_AddButtons( (HWND) GetHWND(), 1, buttons ) ) + { + wxFAIL_MSG( wxT("Could not add toolbar button.")); + } lastWasRadio = isRadio; }