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
This commit is contained in:
Václav Slavík
2003-07-19 10:49:08 +00:00
parent 55f55e8a8d
commit fa32ef75e4
2 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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