From 5bd4038f6e4522cba6067083a4f844f763369072 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 2 Oct 2007 15:01:29 +0200 Subject: [PATCH] user32/tests: Replace GWL_WNDPROC by GWLP_WNDPROC. --- dlls/user32/tests/class.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/user32/tests/class.c b/dlls/user32/tests/class.c index 7f54e2f444b..a988083cf58 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); -- 2.11.4.GIT