mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 18:03:37 +00:00
oleaut32/tests: Only use interface if we succeeded in recreating it.
This commit is contained in:
parent
f98369f21c
commit
862cc73fb4
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue