From b9232e643ced5cc0b833784b2d6bfcddc24a5838 Mon Sep 17 00:00:00 2001 From: kichik Date: Wed, 23 Apr 2003 15:40:59 +0000 Subject: [PATCH] Compiles without NSIS_SUPPORT_CODECALLBACKS again git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2487 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/Ui.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/exehead/Ui.c b/Source/exehead/Ui.c index 80a40057..a5acf885 100644 --- a/Source/exehead/Ui.c +++ b/Source/exehead/Ui.c @@ -410,9 +410,11 @@ BOOL CALLBACK DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) this_page=g_inst_page+m_page; if (m_page>=0) { +#ifdef NSIS_SUPPORT_CODECALLBACKS // Call leave function. If Abort used don't move to the next page. if (m_delta==1) if (ExecuteCodeSegment(this_page->leavefunc,NULL)) return 1; - +#endif + // if the last page was a custom page, wait for it to finish by itself. // if it doesn't, it's a BAD plugin. // plugins should react to WM_NOTIFY_OUTER_NEXT.