user32: CallWindowProc[AW] for mismatched built-in winprocs
should take into account if the window is Unicode (with
testcase, fixes bug #9198)
Alexandre Julliard
julliard at winehq.org
Wed Aug 8 09:01:07 CDT 2007
Mikołaj Zalewski <mikolaj at zalewski.pl> writes:
> + hwnd = CreateWindowExW(0, classW, NULL, WS_OVERLAPPEDWINDOW,
> + CW_USEDEFAULT, CW_USEDEFAULT, 680, 260, NULL, NULL, GetModuleHandleA(NULL), 0);
> + ok(IsWindowUnicode(hwnd), "\n");
> + SetWindowLongPtrW(hwnd, GWLP_WNDPROC, (LONG_PTR)pDefWindowProcA);
> + ok(IsWindowUnicode(hwnd), "\n");
> + ok(GetWindowLongPtrW(hwnd, GWLP_WNDPROC) == (LONG_PTR)pDefWindowProcW, "\n");
> + ok(GetWindowLongPtrA(hwnd, GWLP_WNDPROC) == (LONG_PTR)pDefWindowProcA, "\n");
> + SetWindowLongPtrA(hwnd, GWL_WNDPROC, (LONG_PTR)ClassTest_WndProc);
> + ok(IsWindowUnicode(hwnd) == FALSE, "\n");
Please use meaningful error messages in the ok() calls.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list