Hi Alex,
On 01/18/2018 06:24 PM, Alex Henrie wrote:
+HRESULT dhtml_edit_create(REFIID iid, void **out) +{
- DHTMLEditImpl *This;
- TRACE("(%s, %p)\n", debugstr_guid(iid), out);
- *out = NULL;
- This = HeapAlloc(GetProcessHeap(), 0, sizeof(*This));
- if (!This)
return E_OUTOFMEMORY;
- This->IDHTMLEdit_iface.lpVtbl = &DHTMLEditVtbl;
- This->ref = 1;
- *out = &This->IDHTMLEdit_iface;
- return S_OK;
+}
You need to take into account iid here. You can't just pick one interface and return it.
Thanks,
Jacek