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:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user