mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 10:28:45 +00:00
[ATL_WINETEST]
* Sync with Wine 1.5.19. svn path=/trunk/; revision=57888
This commit is contained in:
parent
be896f3971
commit
1e6bd4d298
1 changed files with 12 additions and 0 deletions
|
@ -135,11 +135,23 @@ static void test_registrar(void)
|
|||
IRegistrar_Release(registrar);
|
||||
}
|
||||
|
||||
static void test_aggregation(void)
|
||||
{
|
||||
IUnknown *unk = (IUnknown*)0xdeadbeef;
|
||||
HRESULT hres;
|
||||
|
||||
hres = CoCreateInstance(&CLSID_Registrar, (IUnknown*)0xdeadbeef, CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER,
|
||||
&IID_IUnknown, (void**)&unk);
|
||||
ok(hres == CLASS_E_NOAGGREGATION, "CoCreateInstance failed: %08x, expected CLASS_E_NOAGGREGATION\n", hres);
|
||||
ok(!unk, "unk = %p\n", unk);
|
||||
}
|
||||
|
||||
START_TEST(registrar)
|
||||
{
|
||||
CoInitialize(NULL);
|
||||
|
||||
test_registrar();
|
||||
test_aggregation();
|
||||
|
||||
CoUninitialize();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue