Author: akhaldi
Date: Wed Dec 12 12:55:58 2012
New Revision: 57888
URL:
http://svn.reactos.org/svn/reactos?rev=57888&view=rev
Log:
[ATL_WINETEST]
* Sync with Wine 1.5.19.
Modified:
trunk/rostests/winetests/atl/registrar.c
Modified: trunk/rostests/winetests/atl/registrar.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/atl/registrar.c…
==============================================================================
--- trunk/rostests/winetests/atl/registrar.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/atl/registrar.c [iso-8859-1] Wed Dec 12 12:55:58 2012
@@ -135,11 +135,23 @@
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();
}