fix app exit code: it is returned by OnExit(), not OnRun()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-11-03 21:11:11 +00:00
parent caaff22c06
commit 6186e29350

View File

@@ -712,7 +712,7 @@ int wxEntry(WXHINSTANCE hInstance,
if ( enterLoop )
{
// run the main loop
retValue = wxTheApp->OnRun();
wxTheApp->OnRun();
}
else
{
@@ -739,7 +739,7 @@ int wxEntry(WXHINSTANCE hInstance,
}
}
wxTheApp->OnExit();
retValue = wxTheApp->OnExit();
wxEntryCleanup();