12 May
2022
12 May
'22
4:15 p.m.
On Wed, 11 May 2022 at 13:56, Ziqing Hui <zhui(a)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[]".)