From 1e5328c77c861e163081b5e084b648bc6f6a72e8 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Thu, 20 Sep 2012 13:29:17 +0200 Subject: [PATCH] user32: Remove superfluous function pointer casts. --- 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 f0fdf495978..497d545a791 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 2e4ad7d7fb6..7d14b126286 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();