Piotr Caban : user32/tests: Show that messages are not converted when function pointer is passed to CallWindowProc.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Mar 14 09:05:21 CDT 2016
Module: wine
Branch: master
Commit: f729e62a27e2e6fdeb05d01511b85302e96d3054
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f729e62a27e2e6fdeb05d01511b85302e96d3054
Author: Piotr Caban <piotr at codeweavers.com>
Date: Wed Mar 9 13:51:47 2016 +0100
user32/tests: Show that messages are not converted when function pointer is passed to CallWindowProc.
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/tests/win.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
index cf7ddc8..957e8a1d 100644
--- a/dlls/user32/tests/win.c
+++ b/dlls/user32/tests/win.c
@@ -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);
More information about the wine-cvs
mailing list