Commit f729e62a authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

user32/tests: Show that messages are not converted when function pointer is…

user32/tests: Show that messages are not converted when function pointer is passed to CallWindowProc. Signed-off-by: 's avatarPiotr Caban <piotr@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent b1132531
......@@ -8798,6 +8798,12 @@ static void test_winproc_limit(void)
ok(SendMessageA(hwnd, WM_SETTEXT, 0, (LPARAM)"text"), "WM_SETTEXT failed\n");
ok(SendMessageW(hwnd, WM_SETTEXT, 0, (LPARAM)textW), "WM_SETTEXT with conversion failed\n");
/* Show that there's no message conversion when CallWindowProc is used */
ok(CallWindowProcA(winproc_convW, hwnd, WM_SETTEXT, 0, (LPARAM)textW) == 1,
"winproc_convW returned error\n");
ok(CallWindowProcW(winproc_convW, hwnd, WM_SETTEXT, 0, (LPARAM)textW) == 1,
"winproc_convW returned error\n");
i = 0;
CallWindowProcA(winproc_handle, 0, 0, 0, (LPARAM)&i);
ok(i == 1, "winproc should be called once (%d)\n", i);
......
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