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:
@@ -712,7 +712,7 @@ int wxEntry(WXHINSTANCE hInstance,
|
|||||||
if ( enterLoop )
|
if ( enterLoop )
|
||||||
{
|
{
|
||||||
// run the main loop
|
// run the main loop
|
||||||
retValue = wxTheApp->OnRun();
|
wxTheApp->OnRun();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -739,7 +739,7 @@ int wxEntry(WXHINSTANCE hInstance,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wxTheApp->OnExit();
|
retValue = wxTheApp->OnExit();
|
||||||
|
|
||||||
wxEntryCleanup();
|
wxEntryCleanup();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user