user32: Remove superfluous function pointer casts.

Michael Stefaniuc mstefani at redhat.de
Thu Sep 20 06:29:17 CDT 2012


---
 dlls/user32/dialog.c    |    3 +--
 dlls/user32/tests/msg.c |    3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/user32/dialog.c b/dlls/user32/dialog.c
index f0fdf49..497d545 100644
--- a/dlls/user32/dialog.c
+++ b/dlls/user32/dialog.c
@@ -1513,8 +1513,7 @@ BOOL WINAPI CheckRadioButton( HWND hwndDlg, int firstID,
     radioGroup.lastID = lastID;
     radioGroup.checkID = checkID;
 
-    return EnumChildWindows(hwndDlg, (WNDENUMPROC)CheckRB,
-                            (LPARAM)&radioGroup);
+    return EnumChildWindows(hwndDlg, CheckRB, (LPARAM)&radioGroup);
 }
 
 
diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
index 2e4ad7d..7d14b12 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -11268,8 +11268,7 @@ static void test_EndDialog(void)
     ok(GetClassInfo(0, "#32770", &cls), "GetClassInfo failed\n");
     cls.lpszClassName = "MyDialogClass";
     cls.hInstance = GetModuleHandle(0);
-    /* need a cast since a dlgproc is used as a wndproc */
-    cls.lpfnWndProc = (WNDPROC)test_dlg_proc;
+    cls.lpfnWndProc = test_dlg_proc;
     if (!RegisterClass(&cls)) assert(0);
 
     flush_sequence();
-- 
1.7.7.6



More information about the wine-patches mailing list