Commit 0dea7326 authored by Damjan Jovanovic's avatar Damjan Jovanovic Committed by Alexandre Julliard

sti: Allow CoCreateInstance aggregation and fix a broken test.

parent 50b8c47d
...@@ -97,9 +97,6 @@ static HRESULT WINAPI sti_cf_CreateInstance( IClassFactory *iface, LPUNKNOWN pOu ...@@ -97,9 +97,6 @@ static HRESULT WINAPI sti_cf_CreateInstance( IClassFactory *iface, LPUNKNOWN pOu
*ppobj = NULL; *ppobj = NULL;
if (pOuter)
return CLASS_E_NOAGGREGATION;
r = This->pfnCreateInstance( riid, pOuter, (LPVOID *)&punk ); r = This->pfnCreateInstance( riid, pOuter, (LPVOID *)&punk );
if (FAILED(r)) if (FAILED(r))
return r; return r;
......
...@@ -218,7 +218,9 @@ static void test_stillimage_aggregation(void) ...@@ -218,7 +218,9 @@ static void test_stillimage_aggregation(void)
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
IStillImage_Release(pStiW); IStillImage_Release(pStiW);
hr = CoCreateInstance(&CLSID_Sti, &aggregator, CLSCTX_ALL, &IID_IUnknown, (void**)&pUnknown); hr = CoCreateInstance(&CLSID_Sti, &aggregator, CLSCTX_ALL, &IID_IUnknown, (void**)&pUnknown);
ok(FAILED(hr), "CoCreateInstance unexpectedly succeeded when querying for IUnknown during aggregation\n"); ok(SUCCEEDED(hr) ||
broken(hr == CLASS_E_NOAGGREGATION), /* Win 2000 */
"CoCreateInstance unexpectedly failed when querying for IUnknown during aggregation, hr = 0x%x\n", hr);
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
IUnknown_Release(pUnknown); IUnknown_Release(pUnknown);
} }
......
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