avifil32: Fix EditStreamSetInfo wine checks [try 2]

Alexandre Julliard julliard at winehq.org
Tue Aug 17 07:20:44 CDT 2010


Alexandre Goujon <ale.goujon at gmail.com> writes:

> +#define TEST_SETINFO_(m) \
> +    hres = EditStreamSetInfo(stream, &info, sizeof(AVISTREAMINFO) ); \
> +    ok( hres == 0, "got 0x%08X, expected 0\n", hres); \
> +    hres = AVIStreamInfo(stream, &info2, sizeof(AVISTREAMINFO) ); \
> +    ok( hres == 0, "got 0x%08X, expected 0\n", hres); \
> +    ok( info2.m == info.m, "EditStreamSetInfo did not update "#m" parameter\n" );
> +
> +#define TEST_SETINFO(m) \
> +    info.m++; \
> +    TEST_SETINFO_(m); \
> +    \
> +    info.m = 0; \
> +    TEST_SETINFO_(m);

Please avoid that sort of macros. Add a helper function if necessary, or
just spell things out explicitly.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list