Module: wine Branch: master Commit: 3fae3f3666a82140bc8210f2be15b8c991750c67 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3fae3f3666a82140bc8210f2be...
Author: Michael Stefaniuc mstefani@redhat.de Date: Sun Dec 27 23:53:43 2009 +0100
winecfg: Remove some explicit WPARAM casts.
---
programs/winecfg/appdefaults.c | 2 +- programs/winecfg/theme.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/programs/winecfg/appdefaults.c b/programs/winecfg/appdefaults.c index 5cb0968..8d28b0a 100644 --- a/programs/winecfg/appdefaults.c +++ b/programs/winecfg/appdefaults.c @@ -144,7 +144,7 @@ static void update_comboboxes(HWND dialog) if (!strcasecmp (win_versions[i].szVersion, winver)) { SendDlgItemMessage (dialog, IDC_WINVER, CB_SETCURSEL, - (WPARAM) i + (current_app?1:0), 0); + i + (current_app?1:0), 0); WINE_TRACE("match with %s\n", win_versions[i].szVersion); break; } diff --git a/programs/winecfg/theme.c b/programs/winecfg/theme.c index afbd6de..96110b3 100644 --- a/programs/winecfg/theme.c +++ b/programs/winecfg/theme.c @@ -465,8 +465,8 @@ static void on_theme_changed(HWND dialog) { if (!update_color_and_size (index, GetDlgItem (dialog, IDC_THEME_COLORCOMBO), GetDlgItem (dialog, IDC_THEME_SIZECOMBO))) { - SendMessageW (GetDlgItem (dialog, IDC_THEME_COLORCOMBO), CB_SETCURSEL, (WPARAM)-1, 0); - SendMessageW (GetDlgItem (dialog, IDC_THEME_SIZECOMBO), CB_SETCURSEL, (WPARAM)-1, 0); + SendMessageW (GetDlgItem (dialog, IDC_THEME_COLORCOMBO), CB_SETCURSEL, -1, 0); + SendMessageW (GetDlgItem (dialog, IDC_THEME_SIZECOMBO), CB_SETCURSEL, -1, 0); enable_size_and_color_controls (dialog, FALSE); } else @@ -699,8 +699,8 @@ static void on_theme_install(HWND dialog) GetDlgItem (dialog, IDC_THEME_COLORCOMBO), GetDlgItem (dialog, IDC_THEME_SIZECOMBO))) { - SendMessageW (GetDlgItem (dialog, IDC_THEME_COLORCOMBO), CB_SETCURSEL, (WPARAM)-1, 0); - SendMessageW (GetDlgItem (dialog, IDC_THEME_SIZECOMBO), CB_SETCURSEL, (WPARAM)-1, 0); + SendMessageW (GetDlgItem (dialog, IDC_THEME_COLORCOMBO), CB_SETCURSEL, -1, 0); + SendMessageW (GetDlgItem (dialog, IDC_THEME_SIZECOMBO), CB_SETCURSEL, -1, 0); enable_size_and_color_controls (dialog, FALSE); } else @@ -786,7 +786,7 @@ static void read_shell_folder_link_targets(void) { static void update_shell_folder_listview(HWND dialog) { int i; LVITEMW item; - LONG lSelected = SendDlgItemMessage(dialog, IDC_LIST_SFPATHS, LVM_GETNEXTITEM, (WPARAM)-1, + LONG lSelected = SendDlgItemMessage(dialog, IDC_LIST_SFPATHS, LVM_GETNEXTITEM, -1, MAKELPARAM(LVNI_SELECTED,0));
SendDlgItemMessage(dialog, IDC_LIST_SFPATHS, LVM_DELETEALLITEMS, 0, 0); @@ -840,7 +840,7 @@ static void update_shell_folder_listview(HWND dialog) { item.mask = LVIF_STATE; item.state = LVIS_SELECTED; item.stateMask = LVIS_SELECTED; - SendDlgItemMessage(dialog, IDC_LIST_SFPATHS, LVM_SETITEMSTATE, (WPARAM)lSelected, + SendDlgItemMessage(dialog, IDC_LIST_SFPATHS, LVM_SETITEMSTATE, lSelected, (LPARAM)&item); } }