Return CLASS_E_NOAGGREGATION if pUnkOuter is non-null.

This commit is contained in:
James Hawkins 2005-01-14 15:12:43 +00:00 committed by Alexandre Julliard
parent dbb5d2a871
commit 6847d5956a
1 changed files with 3 additions and 0 deletions

View File

@ -466,6 +466,9 @@ static HRESULT WINAPI DSCF_CreateInstance(
IClassFactoryImpl *This = (IClassFactoryImpl *)iface;
TRACE("(%p)->(%p,%s,%p)\n",This,pOuter,debugstr_guid(riid),ppobj);
if (pOuter)
return CLASS_E_NOAGGREGATION;
if (ppobj == NULL) {
WARN("invalid parameter\n");
return DSERR_INVALIDPARAM;