fixed bug #2810188 - Weird (erroneous) behavior of Menu Start selection page
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6006 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
cde0aea770
commit
40cf7e1686
1 changed files with 8 additions and 4 deletions
|
@ -368,10 +368,14 @@ BOOL CALLBACK dlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
case WM_COMMAND:
|
||||
if (LOWORD(wParam) == IDC_DIRLIST && HIWORD(wParam) == LBN_SELCHANGE)
|
||||
{
|
||||
SendMessage(hwDirList, LB_GETTEXT, SendMessage(hwDirList, LB_GETCURSEL, 0, 0), (WPARAM)buf);
|
||||
if (autoadd)
|
||||
lstrcat(lstrcat(buf, "\\"), progname);
|
||||
SetWindowText(hwLocation, buf);
|
||||
LRESULT selection = SendMessage(hwDirList, LB_GETCURSEL, 0, 0);
|
||||
if (selection != LB_ERR)
|
||||
{
|
||||
SendMessage(hwDirList, LB_GETTEXT, selection, (WPARAM)buf);
|
||||
if (autoadd)
|
||||
lstrcat(lstrcat(buf, "\\"), progname);
|
||||
SetWindowText(hwLocation, buf);
|
||||
}
|
||||
}
|
||||
else if (LOWORD(wParam) == IDC_CHECK && HIWORD(wParam) == BN_CLICKED)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue