18 Nov
2024
18 Nov
'24
8:01 a.m.
Zhiyi Zhang (@zhiyi) commented about dlls/wintypes/main.c:
HRESULT WINAPI DllGetActivationFactory(HSTRING classid, IActivationFactory **factory) { + const WCHAR *name; + TRACE("classid %s, factory %p.\n", debugstr_hstring(classid), factory); + name = WindowsGetStringRawBuffer(classid, NULL); + + if (!wcscmp(name, RuntimeClass_Windows_Foundation_Collections_PropertySet)) + return propertyset_factory_create(factory);
We usually put a "extern IActivationFactory *propertyset_factory" in the private header. See dlls/cryptowinrt/main.c#DllGetActivationFactory for example. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6766#note_87769