user32/tests: Avoid crash on win9x in win.c [try 2]

Detlef Riekenberg wine.dev at web.de
Sun Oct 26 17:35:44 CDT 2008


On Mo, 2008-08-04 at 13:18 +0900, Dmitry Timoshkov wrote:
> "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.

v2 use CreateWindowExW.
That fail always on win9x and the test is skipped


-- 
 
By by ... Detlef

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-user32-tests-Avoid-a-crash-on-win9x.patch.txt
Type: application/mbox
Size: 0 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081026/a7abe04a/attachment.bin 


More information about the wine-patches mailing list