[PATCH] user32/tests: Avoid crash on win9x
Detlef Riekenberg
wine.dev at web.de
Sun Aug 3 15:43:34 CDT 2008
---
dlls/user32/tests/win.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
index 6cb784f..7aa6d08 100644
--- a/dlls/user32/tests/win.c
+++ b/dlls/user32/tests/win.c
@@ -4765,10 +4765,14 @@ static void test_hwnd_message(void)
parent = pGetAncestor(hwnd, GA_PARENT);
ok(parent != 0, "GetAncestor(GA_PARENT) should not return 0 for message windows\n");
ok(parent != desktop, "GetAncestor(GA_PARENT) should not return desktop for message windows\n");
- root = pGetAncestor(hwnd, GA_ROOT);
- ok(root == hwnd, "GetAncestor(GA_ROOT) should return hwnd for message windows\n");
+ if (0) {
+ /* this crash on win9x */
+ root = pGetAncestor(hwnd, GA_ROOT);
+ ok(root == hwnd, "GetAncestor(GA_ROOT) should return hwnd for message windows\n");
+ }
+
ok( !pGetAncestor(parent, GA_PARENT), "parent shouldn't have a parent\n" );
- trace("parent %p root %p desktop %p\n", parent, root, desktop);
+
if (!GetClassNameA( parent, buffer, sizeof(buffer) )) buffer[0] = 0;
ok( !lstrcmpi( buffer, "Message" ), "wrong parent class '%s'\n", buffer );
GetWindowRect( parent, &rect );
--
1.5.4.3
--=-1OoHrL/bAzOERzB/Xvnt--
More information about the wine-patches
mailing list