mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
ole32: Stop crash under w2k8.
This commit is contained in:
parent
ea49a06934
commit
0a1a4f7ca8
1 changed files with 13 additions and 10 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue