From 6186e293509ee0e0ef5e248217d0a67e8e42dfe0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 3 Nov 2002 21:11:11 +0000 Subject: [PATCH] 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 --- src/msw/app.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msw/app.cpp b/src/msw/app.cpp index f29c2213fc..dbdba5bbe8 100644 --- a/src/msw/app.cpp +++ b/src/msw/app.cpp @@ -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();