]> git.saurik.com Git - wxWidgets.git/commitdiff
(harmless) eVC4 release mode warning fix
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 20 Jun 2005 00:22:56 +0000 (00:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 20 Jun 2005 00:22:56 +0000 (00:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34712 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/wince/tbarwce.cpp

index ae471ff2fd6929083d9e56e72266fe9f212b0d3e..5070ce3f668529325ca0149ae10c2b76c81f08fa 100644 (file)
@@ -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;
     }