Alexandre Julliard : user32/tests: Fix the window creation on Win64.
Alexandre Julliard
julliard at winehq.org
Thu May 7 09:25:38 CDT 2009
Module: wine
Branch: master
Commit: 8432ff70bb898867d1fa6cdda3aeb6ddf4c45144
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8432ff70bb898867d1fa6cdda3aeb6ddf4c45144
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu May 7 13:50:49 2009 +0200
user32/tests: Fix the window creation on Win64.
---
dlls/user32/tests/class.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/tests/class.c b/dlls/user32/tests/class.c
index f3e8242..f8a4cd8 100644
--- a/dlls/user32/tests/class.c
+++ b/dlls/user32/tests/class.c
@@ -43,11 +43,13 @@ static const WCHAR WC_EDITW[] = {'E','d','i','t',0};
static LRESULT WINAPI ClassTest_WndProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
+ if (msg == WM_NCCREATE) return 1;
return DefWindowProcW (hWnd, msg, wParam, lParam);
}
static LRESULT WINAPI ClassTest_WndProc2 (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
+ if (msg == WM_NCCREATE) return 1;
return DefWindowProcA (hWnd, msg, wParam, lParam);
}
@@ -370,6 +372,7 @@ static void test_instances(void)
/* setting global flag doesn't change status of class */
hwnd = CreateWindowExA( 0, name, "test", 0, 0, 0, 0, 0, 0, 0, main_module, 0 );
+ ok( hwnd != 0, "CreateWindow failed error %u\n", GetLastError());
SetClassLongA( hwnd, GCL_STYLE, CS_GLOBALCLASS );
cls.lpszMenuName = "kernel32";
cls.hInstance = kernel32;
More information about the wine-cvs
mailing list