[PATCH 2/3] d2d1/tests: Introduce create_factory().
Henri Verbeet
hverbeet at gmail.com
Thu May 12 11:15:55 CDT 2022
On Wed, 11 May 2022 at 13:56, Ziqing Hui <zhui at codeweavers.com> wrote:
> +static void *create_factory(const GUID *iid, UINT32 *factory_version)
> +{
> + IUnknown *factory, *tmp;
> + unsigned int i;
> +
> + static const GUID *factory_iid[] =
> + {
> + &IID_ID2D1Factory,
> + &IID_ID2D1Factory1,
> + &IID_ID2D1Factory2,
> + &IID_ID2D1Factory3,
> + };
You'll want the array itself to also be const. (I.e., "static const
GUID *const factory_iid[]".)
More information about the wine-devel
mailing list