17 Feb
2023
17 Feb
'23
1:04 p.m.
Esme Povirk (@madewokherd) commented about dlls/uiautomationcore/uia_main.c:
+ HRESULT hr; + + TRACE("%p, %p, %s, %p\n", iface, pouter, debugstr_guid(riid), ppv); + + *ppv = NULL; + if (pouter) + return CLASS_E_NOAGGREGATION; + + if (IsEqualGUID(cf->clsid, &CLSID_CUIAutomation)) + hr = create_uia_iface(&obj, FALSE); + else if (IsEqualGUID(cf->clsid, &CLSID_CUIAutomation8)) + hr = create_uia_iface(&obj, TRUE); + else + return E_NOINTERFACE; + + if (SUCCEEDED(hr) && obj) When can this succeed with NULL obj?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/2225#note_24683