[PATCH 2/5] shdocvw: Added IShellBrowser interface stub

Huw Davies huw at codeweavers.com
Mon Mar 14 11:11:04 CDT 2011


On Mon, Mar 14, 2011 at 05:03:37PM +0100, Piotr Caban wrote:
> +static HRESULT WINAPI ShellBrowser_QueryInterface(
> +        IShellBrowser* iface,
> +        REFIID riid,
> +        void **ppvObject)
> +{
> +    ShellBrowser *This = impl_from_IShellBrowser(iface);
> +    *ppvObject = NULL;
> +
> +    if(IsEqualGUID(&IID_IShellBrowser, riid))
> +        *ppvObject = &This->IShellBrowser_iface;
> +
> +    if(*ppvObject) {
> +        TRACE("%p %s %p\n", This, debugstr_guid(riid), ppvObject);
> +        IUnknown_AddRef((IUnknown*)*ppvObject);
> +        return S_OK;
> +    }
> +

You probably want to add support for IID_IUnknown here too.

Huw.



More information about the wine-devel mailing list