Commit d02b27c0 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

ole32: Move test for CoGetInterfaceAndReleaseStream to compobj.c.

parent 43d0d85f
......@@ -455,6 +455,18 @@ static void test_CoGetPSClsid(void)
CoUninitialize();
}
static void test_CoGetInterfaceAndReleaseStream(void)
{
HRESULT hr;
IUnknown *pUnk;
pCoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
hr = CoGetInterfaceAndReleaseStream(NULL, &IID_IUnknown, (void**)&pUnk);
ok(hr == E_INVALIDARG, "hr %08x\n", hr);
CoUninitialize();
}
START_TEST(compobj)
{
......@@ -474,4 +486,5 @@ START_TEST(compobj)
test_CoRegisterMessageFilter();
test_CoRegisterPSClsid();
test_CoGetPSClsid();
test_CoGetInterfaceAndReleaseStream();
}
......@@ -2150,15 +2150,6 @@ static void test_globalinterfacetable(void)
CloseHandle(thread);
}
static void test_CoGetInterfaceAndReleaseStream(void)
{
HRESULT hr;
IUnknown *pUnk;
hr = CoGetInterfaceAndReleaseStream(NULL, &IID_IUnknown, (void**)&pUnk);
ok(hr == E_INVALIDARG, "hr %08x\n", hr);
}
static const char *debugstr_iid(REFIID riid)
{
static char name[256];
......@@ -2429,8 +2420,6 @@ START_TEST(marshal)
test_globalinterfacetable();
test_CoGetInterfaceAndReleaseStream();
/* must be last test as channel hooks can't be unregistered */
test_channel_hook();
......
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