fixed bug #1664428 - LicenseForceSelection validation check can be easily skipped

rollback 1.269 as lParam can be NULL, as in this case


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4946 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2007-02-20 21:34:32 +00:00
parent 71df1fde32
commit 0c4ba9481a

View file

@ -648,10 +648,11 @@ skipPage:
if (uMsg == WM_COMMAND)
{
int id = LOWORD(wParam);
if (lParam)
HWND hCtl = GetDlgItem(hwndDlg, id); // lParam might be NULL
if (hCtl)
{
SendMessage((HWND) lParam, BM_SETSTATE, FALSE, 0);
if (!IsWindowEnabled((HWND) lParam))
SendMessage(hCtl, BM_SETSTATE, FALSE, 0);
if (!IsWindowEnabled(hCtl))
return 0;
}