opcservices: Improve error handling (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c1982f5dda
commit
ab462acf4e
|
@ -1476,9 +1476,9 @@ static HRESULT opc_package_write_contenttypes(struct zip_archive *archive, IXmlW
|
|||
if (FAILED(hr = CreateStreamOnHGlobal(NULL, TRUE, &content)))
|
||||
return hr;
|
||||
|
||||
IXmlWriter_SetOutput(writer, (IUnknown *)content);
|
||||
|
||||
hr = IXmlWriter_WriteStartDocument(writer, XmlStandalone_Omit);
|
||||
hr = IXmlWriter_SetOutput(writer, (IUnknown *)content);
|
||||
if (SUCCEEDED(hr))
|
||||
hr = IXmlWriter_WriteStartDocument(writer, XmlStandalone_Omit);
|
||||
if (SUCCEEDED(hr))
|
||||
hr = IXmlWriter_WriteStartElement(writer, NULL, typesW, uriW);
|
||||
if (SUCCEEDED(hr))
|
||||
|
@ -1566,9 +1566,9 @@ static HRESULT opc_package_write_rels(struct zip_archive *archive, IOpcRelations
|
|||
return hr;
|
||||
}
|
||||
|
||||
IXmlWriter_SetOutput(writer, (IUnknown *)content);
|
||||
|
||||
hr = IXmlWriter_WriteStartDocument(writer, XmlStandalone_Yes);
|
||||
hr = IXmlWriter_SetOutput(writer, (IUnknown *)content);
|
||||
if (SUCCEEDED(hr))
|
||||
hr = IXmlWriter_WriteStartDocument(writer, XmlStandalone_Yes);
|
||||
if (SUCCEEDED(hr))
|
||||
hr = IXmlWriter_WriteStartElement(writer, NULL, relationshipsW, uriW);
|
||||
|
||||
|
|
Loading…
Reference in New Issue