From 012806a0772087ffb77234a482acafd431173ca1 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Mon, 23 Jan 2012 10:31:55 +0300 Subject: [PATCH] msxml3: Try IStream if IPersistStream save failed. --- dlls/msxml3/saxreader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c index 16b85ed2ade..fb41c107c9f 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) { -- 2.11.4.GIT