Re: user32: CallWindowProc[AW] for mismatched built-in winprocs should take into account if the window is Unicode (with testcase, fixes bug #9198)
Aug. 8, 2007
9:01 a.m.
MikoĊaj Zalewski <mikolaj(a)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(a)winehq.org
6805
Age (days ago)
6805
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard