win32: fix bug with OK button not working right in 7z archive browser

This commit is contained in:
zeromus 2009-04-08 05:10:44 +00:00
parent 3bf810631e
commit f15a131a20
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ static BOOL CALLBACK ArchiveFileSelectorCallback(HWND hwndDlg, UINT uMsg, WPARAM
return TRUE;
case IDOK:
EndDialog(hwndDlg,SendMessage((HWND)lParam,LB_GETCURSEL,0,0));
EndDialog(hwndDlg,SendMessage(GetDlgItem(hwndDlg,IDC_LIST1),LB_GETCURSEL,0,0));
return TRUE;
case IDCANCEL: