From b4e31e321e4326eab65a3a6001f12979a9332d0c Mon Sep 17 00:00:00 2001 From: kichik Date: Tue, 11 Jan 2005 16:54:59 +0000 Subject: [PATCH] update the inner page if the leave function aborted, something might have changed git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3861 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/Ui.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/exehead/Ui.c b/Source/exehead/Ui.c index 4340da9c..fc36ae24 100644 --- a/Source/exehead/Ui.c +++ b/Source/exehead/Ui.c @@ -431,7 +431,10 @@ BOOL CALLBACK DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) #ifdef NSIS_SUPPORT_CODECALLBACKS // Call leave function. If Abort used don't move to the next page. // But if quit called we must exit now - if (m_delta==1) if (ExecuteCodeSegment(this_page->leavefunc,NULL)) return !g_quit_flag; + if (m_delta==1) if (ExecuteCodeSegment(this_page->leavefunc,NULL)) { + SendMessage(m_curwnd, WM_IN_UPDATEMSG, 0, 1); + return !g_quit_flag; + } #endif // if the last page was a custom page, wait for it to finish by itself.