Commit 664789ce authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

evr: Return E_NOINTERFACE when aggregation is requested with an interface other than IUnknown.

parent 9f3e7241
......@@ -118,6 +118,10 @@ static HRESULT WINAPI classfactory_CreateInstance(IClassFactory *iface, IUnknown
TRACE("(%p)->(%p,%s,%p)\n", This, outer_unk, debugstr_guid(riid), ppobj);
*ppobj = NULL;
if (outer_unk && !IsEqualGUID(riid, &IID_IUnknown))
return E_NOINTERFACE;
hres = This->pfnCreateInstance(outer_unk, (void **) &unk);
if (SUCCEEDED(hres))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment