dswave: Implement IClassFactory::QueryInterface.
This commit is contained in:
parent
348392fe2b
commit
3ff39057d2
|
@ -37,15 +37,26 @@ typedef struct {
|
||||||
/******************************************************************
|
/******************************************************************
|
||||||
* DirectMusicWave ClassFactory
|
* DirectMusicWave ClassFactory
|
||||||
*/
|
*/
|
||||||
static HRESULT WINAPI WaveCF_QueryInterface(IClassFactory * iface, REFIID riid, void **ppobj)
|
static HRESULT WINAPI WaveCF_QueryInterface(IClassFactory * iface, REFIID riid, void **ppv)
|
||||||
{
|
{
|
||||||
FIXME("- no interface\n\tIID:\t%s\n", debugstr_guid(riid));
|
if (ppv == NULL)
|
||||||
|
return E_POINTER;
|
||||||
if (ppobj == NULL) return E_POINTER;
|
|
||||||
|
|
||||||
|
if (IsEqualGUID(&IID_IUnknown, riid))
|
||||||
|
TRACE("(%p)->(IID_IUnknown %p)\n", iface, ppv);
|
||||||
|
else if (IsEqualGUID(&IID_IClassFactory, riid))
|
||||||
|
TRACE("(%p)->(IID_IClassFactory %p)\n", iface, ppv);
|
||||||
|
else {
|
||||||
|
FIXME("(%p)->(%s %p)\n", iface, debugstr_guid(riid), ppv);
|
||||||
|
*ppv = NULL;
|
||||||
return E_NOINTERFACE;
|
return E_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*ppv = iface;
|
||||||
|
IUnknown_AddRef((IUnknown*)*ppv);
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
static ULONG WINAPI WaveCF_AddRef(IClassFactory * iface)
|
static ULONG WINAPI WaveCF_AddRef(IClassFactory * iface)
|
||||||
{
|
{
|
||||||
DSWAVE_LockModule();
|
DSWAVE_LockModule();
|
||||||
|
|
Loading…
Reference in New Issue