Commit 8cd1d583 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

user32/tests: Drop superfluous function pointer casts.

parent e6cf9fbc
...@@ -1150,7 +1150,7 @@ static void test_DialogBoxParamA(void) ...@@ -1150,7 +1150,7 @@ static void test_DialogBoxParamA(void)
static void test_DisabledDialogTest(void) static void test_DisabledDialogTest(void)
{ {
g_terminated = FALSE; g_terminated = FALSE;
DialogBoxParam(g_hinst, "IDD_DIALOG", NULL, (DLGPROC)disabled_test_proc, 0); DialogBoxParam(g_hinst, "IDD_DIALOG", NULL, disabled_test_proc, 0);
ok(FALSE == g_terminated, "dialog with disabled ok button has been terminated\n"); ok(FALSE == g_terminated, "dialog with disabled ok button has been terminated\n");
} }
......
...@@ -11236,7 +11236,7 @@ static void test_dialog_messages(void) ...@@ -11236,7 +11236,7 @@ static void test_dialog_messages(void)
cls.lpszClassName = "MyDialogClass"; cls.lpszClassName = "MyDialogClass";
cls.hInstance = GetModuleHandle(0); cls.hInstance = GetModuleHandle(0);
/* need a cast since a dlgproc is used as a wndproc */ /* 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); if (!RegisterClass(&cls)) assert(0);
hdlg = CreateDialogParam(0, "CLASS_TEST_DIALOG_2", 0, test_dlg_proc, 0); hdlg = CreateDialogParam(0, "CLASS_TEST_DIALOG_2", 0, test_dlg_proc, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment