Nikolay Sivov (@nsivov) commented about dlls/propsys/propsys_main.c:
propsys_RefreshPropertySchema
};
-static IPropertySystem propsys = { &propsysvtbl };
HRESULT WINAPI PSGetPropertySystem(REFIID riid, void **obj) {
- return IPropertySystem_QueryInterface(&propsys, riid, obj);
- return CoCreateInstance(&CLSID_PropertySystem, NULL, CLSCTX_INPROC_SERVER, riid, obj);
}
This needs a test on its own. Currently it will always work, after your change it will require COM initialization.