Alexandre Julliard : user32/tests: Replace GWL_WNDPROC by GWLP_WNDPROC.
Alexandre Julliard
julliard at winehq.org
Wed Oct 3 06:08:13 CDT 2007
Module: wine
Branch: master
Commit: 5bd4038f6e4522cba6067083a4f844f763369072
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5bd4038f6e4522cba6067083a4f844f763369072
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Oct 2 15:01:29 2007 +0200
user32/tests: Replace GWL_WNDPROC by GWLP_WNDPROC.
---
dlls/user32/tests/class.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/user32/tests/class.c b/dlls/user32/tests/class.c
index 7f54e2f..a988083 100644
--- a/dlls/user32/tests/class.c
+++ b/dlls/user32/tests/class.c
@@ -636,7 +636,7 @@ static void test_defwndproc(void)
ok(IsWindowUnicode(hwnd), "Windows should have remained Unicode\n");
ok(GetWindowLongPtrW(hwnd, GWLP_WNDPROC) == (LONG_PTR)pDefWindowProcW, "Invalid ANSI winproc\n");
ok(GetWindowLongPtrA(hwnd, GWLP_WNDPROC) == (LONG_PTR)pDefWindowProcA, "Invalid Unicode winproc\n");
- SetWindowLongPtrA(hwnd, GWL_WNDPROC, (LONG_PTR)ClassTest_WndProc);
+ SetWindowLongPtrA(hwnd, GWLP_WNDPROC, (LONG_PTR)ClassTest_WndProc);
ok(IsWindowUnicode(hwnd) == FALSE, "SetWindowLongPtrA should have switched window to ANSI\n");
DestroyWindow(hwnd);
@@ -654,9 +654,9 @@ static void test_defwndproc(void)
hwnd = CreateWindowExW(0, classW, NULL, WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT, 680, 260, NULL, NULL, GetModuleHandleA(NULL), 0);
ok(IsWindowUnicode(hwnd) == FALSE, "Window should be ANSI\n");
- SetWindowLongPtrW(hwnd, GWL_WNDPROC, (LONG_PTR)ClassTest_WndProc);
+ SetWindowLongPtrW(hwnd, GWLP_WNDPROC, (LONG_PTR)ClassTest_WndProc);
ok(IsWindowUnicode(hwnd), "SetWindowLongPtrW should have changed window to Unicode\n");
- SetWindowLongPtrA(hwnd, GWL_WNDPROC, (LONG_PTR)ClassTest_WndProc);
+ SetWindowLongPtrA(hwnd, GWLP_WNDPROC, (LONG_PTR)ClassTest_WndProc);
ok(IsWindowUnicode(hwnd) == FALSE, "SetWindowLongPtrA should have changed window to ANSI\n");
DestroyWindow(hwnd);
More information about the wine-cvs
mailing list