Nikolay Sivov : msxml3: Try IStream if IPersistStream save failed.

Alexandre Julliard julliard at winehq.org
Mon Jan 23 13:00:57 CST 2012


Module: wine
Branch: master
Commit: 012806a0772087ffb77234a482acafd431173ca1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=012806a0772087ffb77234a482acafd431173ca1

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon Jan 23 10:31:55 2012 +0300

msxml3: Try IStream if IPersistStream save failed.

---

 dlls/msxml3/saxreader.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c
index 16b85ed..fb41c10 100644
--- a/dlls/msxml3/saxreader.c
+++ b/dlls/msxml3/saxreader.c
@@ -2377,9 +2377,10 @@ static HRESULT internal_parse(
                 if(hr != S_OK)
                 {
                     IStream_Release(stream);
-                    break;
+                    stream = NULL;
                 }
             }
+
             if(stream || IUnknown_QueryInterface(V_UNKNOWN(&varInput),
                         &IID_IStream, (void**)&stream) == S_OK)
             {




More information about the wine-cvs mailing list