Kaydet (Commit) a6f978e1 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Logic (only update ret if it does not indicate an error yet)

Change-Id: I717ff4de7cf406b01383f8f181b81695242a2ca8
üst 9dc3ee9a
......@@ -785,7 +785,7 @@ STDMETHODIMP InprocEmbedDocument_Impl::Close( DWORD dwSaveOption )
if (!SUCCEEDED(hr))
ret = hr;
hr = CoDisconnectObject( (IUnknown*)(IPersistStorage*)this, 0 );
if (!(SUCCEEDED(hr) && SUCCEEDED(ret)))
if (!SUCCEEDED(hr) && SUCCEEDED(ret))
ret = hr;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment