ole32: Stop crash under w2k8.

This commit is contained in:
Alistair Leslie-Hughes 2008-08-06 14:51:03 +10:00 committed by Alexandre Julliard
parent ea49a06934
commit 0a1a4f7ca8

View file

@ -2337,20 +2337,23 @@ static void test_handler_marshaling(void)
ok_ole_success(hr, "CoUnmarshalInterface");
IStream_Release(pStream);
ok_more_than_one_lock();
if(hr == S_OK)
{
ok_more_than_one_lock();
hr = IUnknown_QueryInterface(pProxy, &IID_IWineTest, (void **)&pObject);
ok(hr == E_NOINTERFACE, "IUnknown_QueryInterface with unknown IID should have returned E_NOINTERFACE instead of 0x%08x\n", hr);
hr = IUnknown_QueryInterface(pProxy, &IID_IWineTest, (void **)&pObject);
ok(hr == E_NOINTERFACE, "IUnknown_QueryInterface with unknown IID should have returned E_NOINTERFACE instead of 0x%08x\n", hr);
/* it's a handler as it supports IOleObject */
hr = IUnknown_QueryInterface(pProxy, &IID_IOleObject, (void **)&pObject);
todo_wine
ok_ole_success(hr, "IUnknown_QueryInterface(&IID_IOleObject)");
if (SUCCEEDED(hr)) IUnknown_Release(pObject);
/* it's a handler as it supports IOleObject */
hr = IUnknown_QueryInterface(pProxy, &IID_IOleObject, (void **)&pObject);
todo_wine
ok_ole_success(hr, "IUnknown_QueryInterface(&IID_IOleObject)");
if (SUCCEEDED(hr)) IUnknown_Release(pObject);
IUnknown_Release(pProxy);
IUnknown_Release(pProxy);
ok_no_locks();
ok_no_locks();
}
end_host_object(tid, thread);