Commit 4688389d authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Allocate a dual A/W winproc for DefWindowProc.

parent cc90b25a
......@@ -416,6 +416,9 @@ void CLASS_RegisterBuiltinClasses(void)
register_builtin( &MENU_builtin_class );
register_builtin( &SCROLL_builtin_class );
register_builtin( &STATIC_builtin_class );
/* the DefWindowProc winprocs are magic too */
WINPROC_AllocProc( DefWindowProcA, DefWindowProcW );
}
......
......@@ -602,7 +602,7 @@ static void test_defwndproc()
(void *)GetClassLongPtrA(hwnd, GCLP_WNDPROC), pDefWindowProcA);
}
else
todo_wine {
{
ok(GetWindowLongPtrA(hwnd, GWLP_WNDPROC) == (LONG_PTR)pDefWindowProcA, "Wrong ANSI wndproc: %p vs %p\n",
(void *)GetWindowLongPtrA(hwnd, GWLP_WNDPROC), pDefWindowProcA);
ok(GetClassLongPtrA(hwnd, GCLP_WNDPROC) == (ULONG_PTR)pDefWindowProcA, "Wrong ANSI wndproc: %p vs %p\n",
......@@ -617,7 +617,7 @@ static void test_defwndproc()
(void *)GetClassLongPtrW(hwnd, GCLP_WNDPROC), pDefWindowProcW);
}
else
todo_wine {
{
ok(GetWindowLongPtrW(hwnd, GWLP_WNDPROC) == (LONG_PTR)pDefWindowProcW, "Wrong Unicode wndproc: %p vs %p\n",
(void *)GetWindowLongPtrW(hwnd, GWLP_WNDPROC), pDefWindowProcW);
ok(GetClassLongPtrW(hwnd, GCLP_WNDPROC) == (ULONG_PTR)pDefWindowProcW, "Wrong Unicode wndproc: %p vs %p\n",
......
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