On Wed, 11 May 2022 at 13:56, Ziqing Hui zhui@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[]".)