[PATCH 2/8] dhtmled.ocx: Add DLL and stub DHTMLEdit object
Jacek Caban
jacek at codeweavers.com
Fri Jan 19 07:29:11 CST 2018
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
More information about the wine-devel
mailing list