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
|
#if wxUSE_GUI
|
||||||
bool OnInit();
|
bool OnInit();
|
||||||
|
int OnRun() { return 0; }
|
||||||
|
int OnExit() { return retCode; }
|
||||||
#else
|
#else
|
||||||
virtual int OnRun();
|
virtual int OnRun();
|
||||||
#endif
|
#endif
|
||||||
@@ -119,7 +121,7 @@ int XmlResApp::OnRun()
|
|||||||
else
|
else
|
||||||
CompileRes();
|
CompileRes();
|
||||||
#if wxUSE_GUI
|
#if wxUSE_GUI
|
||||||
return FALSE;
|
return TRUE;
|
||||||
#else
|
#else
|
||||||
return retCode;
|
return retCode;
|
||||||
#endif
|
#endif
|
||||||
|
@@ -48,6 +48,8 @@ public:
|
|||||||
|
|
||||||
#if wxUSE_GUI
|
#if wxUSE_GUI
|
||||||
bool OnInit();
|
bool OnInit();
|
||||||
|
int OnRun() { return 0; }
|
||||||
|
int OnExit() { return retCode; }
|
||||||
#else
|
#else
|
||||||
virtual int OnRun();
|
virtual int OnRun();
|
||||||
#endif
|
#endif
|
||||||
@@ -119,7 +121,7 @@ int XmlResApp::OnRun()
|
|||||||
else
|
else
|
||||||
CompileRes();
|
CompileRes();
|
||||||
#if wxUSE_GUI
|
#if wxUSE_GUI
|
||||||
return FALSE;
|
return TRUE;
|
||||||
#else
|
#else
|
||||||
return retCode;
|
return retCode;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user