From: Vadim Zeitlin Date: Mon, 28 Aug 2006 10:29:23 +0000 (+0000) Subject: return false from OnInit() in console build if we failed X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d49be4203e5ac67b0208a43e56b2e1a2ee26aee2 return false from OnInit() in console build if we failed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/utils/tex2rtf/src/tex2rtf.cpp b/utils/tex2rtf/src/tex2rtf.cpp index 2e9840aefc..0e237025dc 100644 --- a/utils/tex2rtf/src/tex2rtf.cpp +++ b/utils/tex2rtf/src/tex2rtf.cpp @@ -448,13 +448,13 @@ bool MyApp::OnInit() if (!path.empty()) ReadCustomMacros(path); - Go(); - if (runTwice) + bool rc = Go(); + if ( rc && runTwice ) { - Go(); + rc = Go(); } #ifdef NO_GUI - return true; + return rc; #else OnExit(); // Do cleanup since OnExit won't be called now return false;