serialui: Don't cast zero.

Michael Stefaniuc mstefani at redhat.de
Mon Nov 8 04:37:55 CST 2010


---
 dlls/serialui/confdlg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/serialui/confdlg.c b/dlls/serialui/confdlg.c
index d281c78..0409675 100644
--- a/dlls/serialui/confdlg.c
+++ b/dlls/serialui/confdlg.c
@@ -162,7 +162,7 @@ static void SERIALUI_AddConfItems(HWND hDlg, DWORD id, LPCPARAM2STR table, DWORD
         n = SendMessageA(hControl, CB_ADDSTRING, 0L, (LPARAM)table->data[i].name);
         if(dwVal == table->data[i].val)
 	{
-            SendMessageA(hControl, CB_SETCURSEL, (WPARAM)n, (LPARAM)0);
+            SendMessageA(hControl, CB_SETCURSEL, n, 0);
 	}
     }
 }
-- 
1.7.3.2



More information about the wine-patches mailing list