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.


Reply via email to