user32/tests: Avoid crash on win9x in win.c

Dmitry Timoshkov dmitry at codeweavers.com
Sun Aug 3 23:18:37 CDT 2008


"Detlef Riekenberg" <wine.dev at web.de> wrote:

> @@ -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");
> +        }

HWND_MESSAGE is not supported on win9x, so there is no point in
disabling a part of the test which is not supposed to pass a all.
Probably CreateWindowEx doesn't fail for some reason, so you need
to find a different way to detect that.

-- 
Dmitry.



More information about the wine-devel mailing list