[2/5] gameux: Add IClassFactory implementation
Henri Verbeet
hverbeet at gmail.com
Mon Jul 19 08:10:27 CDT 2010
2010/7/18 Mariusz Pluciński <vshader at gmail.com>:
> +static HRESULT WINAPI gameuxcf_QueryInterface(
> + IClassFactory *iface,
> + REFIID riid,
> + LPVOID *ppobj )
> +{
> + if (IsEqualGUID(riid, &IID_IUnknown) ||
> + IsEqualGUID(riid, &IID_IClassFactory))
> + {
> + IClassFactory_AddRef( iface );
> + *ppobj = iface;
> + return S_OK;
> + }
> +
> + FIXME("interface %s not implemented\n", debugstr_guid(riid));
> + return E_NOINTERFACE;
> +}
QueryInterface() is usually supposed to set "*ppobj" to NULL if the
interface is not implemented by the object, any reason for not doing
that here?
More information about the wine-devel
mailing list