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?