From b9381d0d5d781afea0ff85f1e2c61371c397b97f Mon Sep 17 00:00:00 2001 From: kichik Date: Mon, 11 Nov 2002 20:24:26 +0000 Subject: [PATCH] Unlock right after pre func git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1681 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/Ui.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Source/exehead/Ui.c b/Source/exehead/Ui.c index 13184504..dadadf66 100644 --- a/Source/exehead/Ui.c +++ b/Source/exehead/Ui.c @@ -528,6 +528,7 @@ nextPage: if (ExecuteCodeSegment(this_page->prefunc,NULL) || this_page->id<0) goto nextPage; #endif //NSIS_SUPPORT_CODECALLBACKS + LockWindowUpdate(0); if (this_page->id>=0) // NSIS page { gDontFookWithFocus = 0; @@ -538,6 +539,9 @@ nextPage: GetWindowRect(GetDlgItem(hwndDlg,IDC_CHILDRECT),&r); ScreenToClient(hwndDlg,(LPPOINT)&r); SetWindowPos(m_curwnd,0,r.left,r.top,0,0,SWP_NOACTIVATE|SWP_NOSIZE|SWP_NOZORDER); +#ifdef NSIS_SUPPORT_CODECALLBACKS + ExecuteCodeSegment(this_page->postfunc,NULL); +#endif //NSIS_SUPPORT_CODECALLBACKS SendMessage(m_curwnd, WM_NOTIFY_START, 0, 0); ShowWindow(m_curwnd,SW_SHOWNA); } @@ -549,12 +553,6 @@ nextPage: SetFocus(m_hwndOK); //XGE End } - -#ifdef NSIS_SUPPORT_CODECALLBACKS - ExecuteCodeSegment(this_page->postfunc,NULL); -#endif //NSIS_SUPPORT_CODECALLBACKS - - LockWindowUpdate(0); } } if (uMsg == WM_COMMAND)