Alistair Leslie-Hughes : msxml3: Only compare strings if the transform was successful.
Alexandre Julliard
julliard at winehq.org
Wed Sep 7 12:35:33 CDT 2011
Module: wine
Branch: master
Commit: 3a63aebc1c73ca7b983e55ffc49d5b41a7110310
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3a63aebc1c73ca7b983e55ffc49d5b41a7110310
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Wed Sep 7 20:07:28 2011 +1000
msxml3: Only compare strings if the transform was successful.
---
dlls/msxml3/tests/domdoc.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c
index 22fb3ae..a758880 100644
--- a/dlls/msxml3/tests/domdoc.c
+++ b/dlls/msxml3/tests/domdoc.c
@@ -6978,8 +6978,11 @@ static void test_testTransforms(void)
hr = IXMLDOMDocument_transformNode(doc, pNode, &bOut);
ok(hr == S_OK, "ret %08x\n", hr );
- ok( compareIgnoreReturns( bOut, _bstr_(szTransformOutput)), "Stylesheet output not correct\n");
- SysFreeString(bOut);
+ if(hr == S_OK)
+ {
+ ok( compareIgnoreReturns( bOut, _bstr_(szTransformOutput)), "Stylesheet output not correct\n");
+ SysFreeString(bOut);
+ }
IXMLDOMNode_Release(pNode);
}
More information about the wine-cvs
mailing list