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
This commit is contained in:
kichik 2003-11-18 17:04:29 +00:00
parent 0d00e6b8a9
commit ccfa1de62b

View file

@ -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))
{