From ccfa1de62b2289783016bbe9e6f73f00cc8d79c5 Mon Sep 17 00:00:00 2001 From: kichik Date: Tue, 18 Nov 2003 17:04:29 +0000 Subject: [PATCH] Only map X button to Next if we're on the last page git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3162 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/Ui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/exehead/Ui.c b/Source/exehead/Ui.c index b876474b..3a0f8c96 100644 --- a/Source/exehead/Ui.c +++ b/Source/exehead/Ui.c @@ -532,7 +532,7 @@ skipPage: m_curwnd = (HWND)wParam; goto skipPage; } - if (uMsg == WM_CLOSE) + if (uMsg == WM_CLOSE && m_page == g_blocks[NB_PAGES].num - 1) { if (!IsWindowEnabled(m_hwndCancel) && IsWindowEnabled(m_hwndOK)) {