Dmitry Timoshkov : msvfw32: Fix typos in the control state handling.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Feb 13 07:03:21 CST 2006
Module: wine
Branch: refs/heads/master
Commit: d4774ba1c66e9f4acabf977ecfb1d763e30eaa1f
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=d4774ba1c66e9f4acabf977ecfb1d763e30eaa1f
Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date: Mon Feb 13 12:48:11 2006 +0100
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.
---
dlls/msvideo/msvideo_main.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/dlls/msvideo/msvideo_main.c b/dlls/msvideo/msvideo_main.c
index 2ac5ff3..ce9a25e 100644
--- a/dlls/msvideo/msvideo_main.c
+++ b/dlls/msvideo/msvideo_main.c
@@ -811,7 +811,7 @@ static INT_PTR CALLBACK icm_choose_compr
struct codec_info *ic;
BOOL enable = FALSE;
- if (HIWORD(wparam != CBN_SELCHANGE))
+ if (HIWORD(wparam) != CBN_SELCHANGE)
break;
cur_sel = SendMessageW((HWND)lparam, CB_GETCURSEL, 0, 0);
@@ -832,7 +832,7 @@ static INT_PTR CALLBACK icm_choose_compr
INT cur_sel;
struct codec_info *ic;
- if (HIWORD(wparam != BN_CLICKED))
+ if (HIWORD(wparam) != BN_CLICKED)
break;
cur_sel = SendMessageW(list, CB_GETCURSEL, 0, 0);
@@ -850,6 +850,9 @@ static INT_PTR CALLBACK icm_choose_compr
INT cur_sel;
struct codec_info *ic;
+ if (HIWORD(wparam) != BN_CLICKED)
+ break;
+
cur_sel = SendMessageW(list, CB_GETCURSEL, 0, 0);
ic = (struct codec_info *)SendMessageW(list, CB_GETITEMDATA, cur_sel, 0);
if (ic)
@@ -871,6 +874,9 @@ static INT_PTR CALLBACK icm_choose_compr
HWND list = GetDlgItem(hdlg, IDC_COMP_LIST);
INT idx = 0;
+ if (HIWORD(wparam) != BN_CLICKED)
+ break;
+
while (1)
{
struct codec_info *ic;
More information about the wine-cvs
mailing list