shell32: Don't cast from COM object to interface.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5d51d8a25e
commit
245417571a
|
@ -187,7 +187,7 @@ LPENUMFORMATETC IEnumFORMATETC_Constructor(UINT cfmt, const FORMATETC afmt[])
|
|||
}
|
||||
|
||||
TRACE("(%p)->(%u,%p)\n",ef, cfmt, afmt);
|
||||
return (LPENUMFORMATETC)ef;
|
||||
return &ef->IEnumFORMATETC_iface;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -401,7 +401,7 @@ static IClassFactory * IDefClF_fnConstructor(LPFNCREATEINSTANCE lpfnCI, PLONG pc
|
|||
lpclf->riidInst = riidInst;
|
||||
|
||||
TRACE("(%p)%s\n",lpclf, shdebugstr_guid(riidInst));
|
||||
return (LPCLASSFACTORY)lpclf;
|
||||
return &lpclf->IClassFactory_iface;
|
||||
}
|
||||
/**************************************************************************
|
||||
* IDefClF_fnQueryInterface
|
||||
|
|
Loading…
Reference in New Issue