msvfw32: Fix typos in the control state handling.

Fix typos in the control state handling, add state checks for IDOK
and IDCANCEL control notification handlers.
This commit is contained in:
Dmitry Timoshkov 2006-02-13 12:48:11 +01:00 committed by Alexandre Julliard
parent 0b34fb3656
commit d4774ba1c6
1 changed files with 8 additions and 2 deletions

View File

@ -811,7 +811,7 @@ static INT_PTR CALLBACK icm_choose_compressor_dlgproc(HWND hdlg, UINT msg, WPARA
struct codec_info *ic; struct codec_info *ic;
BOOL enable = FALSE; BOOL enable = FALSE;
if (HIWORD(wparam != CBN_SELCHANGE)) if (HIWORD(wparam) != CBN_SELCHANGE)
break; break;
cur_sel = SendMessageW((HWND)lparam, CB_GETCURSEL, 0, 0); cur_sel = SendMessageW((HWND)lparam, CB_GETCURSEL, 0, 0);
@ -832,7 +832,7 @@ static INT_PTR CALLBACK icm_choose_compressor_dlgproc(HWND hdlg, UINT msg, WPARA
INT cur_sel; INT cur_sel;
struct codec_info *ic; struct codec_info *ic;
if (HIWORD(wparam != BN_CLICKED)) if (HIWORD(wparam) != BN_CLICKED)
break; break;
cur_sel = SendMessageW(list, CB_GETCURSEL, 0, 0); cur_sel = SendMessageW(list, CB_GETCURSEL, 0, 0);
@ -850,6 +850,9 @@ static INT_PTR CALLBACK icm_choose_compressor_dlgproc(HWND hdlg, UINT msg, WPARA
INT cur_sel; INT cur_sel;
struct codec_info *ic; struct codec_info *ic;
if (HIWORD(wparam) != BN_CLICKED)
break;
cur_sel = SendMessageW(list, CB_GETCURSEL, 0, 0); cur_sel = SendMessageW(list, CB_GETCURSEL, 0, 0);
ic = (struct codec_info *)SendMessageW(list, CB_GETITEMDATA, cur_sel, 0); ic = (struct codec_info *)SendMessageW(list, CB_GETITEMDATA, cur_sel, 0);
if (ic) if (ic)
@ -871,6 +874,9 @@ static INT_PTR CALLBACK icm_choose_compressor_dlgproc(HWND hdlg, UINT msg, WPARA
HWND list = GetDlgItem(hdlg, IDC_COMP_LIST); HWND list = GetDlgItem(hdlg, IDC_COMP_LIST);
INT idx = 0; INT idx = 0;
if (HIWORD(wparam) != BN_CLICKED)
break;
while (1) while (1)
{ {
struct codec_info *ic; struct codec_info *ic;