Commit 862cc73f authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

oleaut32/tests: Only use interface if we succeeded in recreating it.

parent f98369f2
......@@ -995,10 +995,13 @@ static void test_typelibmarshal(void)
ok_ole_success(hr, CoUnmarshalInterface);
IStream_Release(pStream);
hr = IKindaEnumWidget_Next(pKEW, &pWidget);
ok_ole_success(hr, IKindaEnumWidget_Next);
if (hr == S_OK)
{
hr = IKindaEnumWidget_Next(pKEW, &pWidget);
ok_ole_success(hr, IKindaEnumWidget_Next);
IKindaEnumWidget_Release(pKEW);
IKindaEnumWidget_Release(pKEW);
}
hr = IWidget_QueryInterface(pWidget, &IID_IDispatch, (void **)&pDispatch);
ok_ole_success(hr, IWidget_QueryInterface);
......
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