André Hentschel : oleaut32/tests: Only use interface if we succeeded in recreating it.
Alexandre Julliard
julliard at winehq.org
Mon Aug 1 13:22:07 CDT 2011
Module: wine
Branch: master
Commit: 862cc73fb4cd8e6c8d454ab822a70a5072cb5dda
URL: http://source.winehq.org/git/wine.git/?a=commit;h=862cc73fb4cd8e6c8d454ab822a70a5072cb5dda
Author: André Hentschel <nerv at dawncrow.de>
Date: Sat Jul 30 16:58:58 2011 +0200
oleaut32/tests: Only use interface if we succeeded in recreating it.
---
dlls/oleaut32/tests/tmarshal.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/dlls/oleaut32/tests/tmarshal.c b/dlls/oleaut32/tests/tmarshal.c
index c64c68a..2897c1f 100644
--- a/dlls/oleaut32/tests/tmarshal.c
+++ b/dlls/oleaut32/tests/tmarshal.c
@@ -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);
More information about the wine-cvs
mailing list