[ole32/tests] Don't crash on NT4

Dmitry Timoshkov dmitry at codeweavers.com
Mon Nov 10 21:46:57 CST 2008


"Paul Vriens" <paul.vriens.wine at gmail.com> wrote:

> static HENHMETAFILE create_emf(void)
> {
>     RECT rect = {0, 0, 100, 100};
> +    const RECT rect2 = {0, 0, 100, 100};
>     HDC hdc = CreateEnhMetaFile(NULL, NULL, &rect, "HENHMETAFILE Marshaling Test\0Test\0\0");
> -    ExtTextOut(hdc, 0, 0, ETO_OPAQUE, NULL, "Test String", strlen("Test String"), NULL);
> +    ExtTextOut(hdc, 0, 0, ETO_OPAQUE, &rect2, "Test String", strlen("Test String"), NULL);

Is there any reason that you introduced rect2 instead of using existing rect?

-- 
Dmitry.



More information about the wine-devel mailing list