>From eb83ef9c4c0720ff760693813bf3e163bd7f3142 Mon Sep 17 00:00:00 2001
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Date: Wed, 7 Sep 2011 20:07:28 +1000
Subject: [PATCH] Only compare strings if the transform was successful
To: wine-patches <wine-patches@winehq.org>

---
 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 42b3b05..7539ade 100644
--- a/dlls/msxml3/tests/domdoc.c
+++ b/dlls/msxml3/tests/domdoc.c
@@ -6977,8 +6977,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);
     }
-- 
1.7.4.1

