From fa32ef75e4ebc064a8165e22cea8422ee52c20e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 19 Jul 2003 10:49:08 +0000 Subject: [PATCH] fixed exit code when wxUSE_GUI=1 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/utils/wxrc/wxrc.cpp | 4 +++- utils/wxrc/wxrc.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/contrib/utils/wxrc/wxrc.cpp b/contrib/utils/wxrc/wxrc.cpp index a6e5ab1a01..1fb19ab032 100644 --- a/contrib/utils/wxrc/wxrc.cpp +++ b/contrib/utils/wxrc/wxrc.cpp @@ -48,6 +48,8 @@ public: #if wxUSE_GUI bool OnInit(); + int OnRun() { return 0; } + int OnExit() { return retCode; } #else virtual int OnRun(); #endif @@ -119,7 +121,7 @@ int XmlResApp::OnRun() else CompileRes(); #if wxUSE_GUI - return FALSE; + return TRUE; #else return retCode; #endif diff --git a/utils/wxrc/wxrc.cpp b/utils/wxrc/wxrc.cpp index a6e5ab1a01..1fb19ab032 100644 --- a/utils/wxrc/wxrc.cpp +++ b/utils/wxrc/wxrc.cpp @@ -48,6 +48,8 @@ public: #if wxUSE_GUI bool OnInit(); + int OnRun() { return 0; } + int OnExit() { return retCode; } #else virtual int OnRun(); #endif @@ -119,7 +121,7 @@ int XmlResApp::OnRun() else CompileRes(); #if wxUSE_GUI - return FALSE; + return TRUE; #else return retCode; #endif