[PATCH v4] wintypes: Implement IApiInformationStatics stubs.

Alexandre Julliard julliard at winehq.org
Tue May 3 14:58:02 CDT 2022


Zhiyi Zhang <zzhang at codeweavers.com> writes:

> +    hr = IApiInformationStatics_IsTypePresent(statics, NULL, &ret);
> +    ok(hr == E_INVALIDARG, "IsTypePresent failed, hr %#lx.\n", hr);
> +
> +#if 0 /* Crash on Windows */
> +    hr = IApiInformationStatics_IsTypePresent(statics, str, NULL);
> +    ok(hr == E_INVALIDARG, "IsTypePresent failed, hr %#lx.\n", hr);
> +#endif

We usually prefer "if (0)" for that sort of things, so that the code can
still be compile checked.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list