Module: wine Branch: master Commit: 7a6a63f8fcfd3e0be8752477e84cfb14f9f2dc69 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7a6a63f8fcfd3e0be8752477e8...
Author: Rob Shearman rob@codeweavers.com Date: Tue Mar 6 17:58:21 2007 +0000
ole32: Fix a failing CoUnmarshalInterface test on Windows.
---
dlls/ole32/tests/compobj.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/dlls/ole32/tests/compobj.c b/dlls/ole32/tests/compobj.c index 9dc2d2d..2d2cf12 100644 --- a/dlls/ole32/tests/compobj.c +++ b/dlls/ole32/tests/compobj.c @@ -542,8 +542,16 @@ static void test_CoUnmarshalInterface(void) ok_ole_success(hr, "CreateStreamOnHGlobal");
hr = CoUnmarshalInterface(pStream, &IID_IUnknown, (void **)&pProxy); + todo_wine + ok(hr == CO_E_NOTINITIALIZED, "CoUnmarshalInterface should have returned CO_E_NOTINITIALIZED instead of 0x%08x\n", hr); + + pCoInitializeEx(NULL, COINIT_APARTMENTTHREADED); + + hr = CoUnmarshalInterface(pStream, &IID_IUnknown, (void **)&pProxy); ok(hr == STG_E_READFAULT, "CoUnmarshalInterface should have returned STG_E_READFAULT instead of 0x%08x\n", hr);
+ CoUninitialize(); + hr = CoUnmarshalInterface(pStream, &IID_IUnknown, NULL); ok(hr == E_INVALIDARG, "CoUnmarshalInterface should have returned E_INVALIDARG instead of 0x%08x\n", hr);