[ATL_WINETEST]
authorAmine Khaldi <amine.khaldi@reactos.org>
Wed, 12 Dec 2012 12:55:58 +0000 (12:55 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Wed, 12 Dec 2012 12:55:58 +0000 (12:55 +0000)
* Sync with Wine 1.5.19.

svn path=/trunk/; revision=57888

rostests/winetests/atl/registrar.c

index 9c5dd23..1b1c797 100644 (file)
@@ -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();
 }