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)))
|
if (FAILED(hr = CreateStreamOnHGlobal(NULL, TRUE, &content)))
|
||||||
return hr;
|
return hr;
|
||||||
|
|
||||||
IXmlWriter_SetOutput(writer, (IUnknown *)content);
|
hr = IXmlWriter_SetOutput(writer, (IUnknown *)content);
|
||||||
|
if (SUCCEEDED(hr))
|
||||||
hr = IXmlWriter_WriteStartDocument(writer, XmlStandalone_Omit);
|
hr = IXmlWriter_WriteStartDocument(writer, XmlStandalone_Omit);
|
||||||
if (SUCCEEDED(hr))
|
if (SUCCEEDED(hr))
|
||||||
hr = IXmlWriter_WriteStartElement(writer, NULL, typesW, uriW);
|
hr = IXmlWriter_WriteStartElement(writer, NULL, typesW, uriW);
|
||||||
if (SUCCEEDED(hr))
|
if (SUCCEEDED(hr))
|
||||||
|
@ -1566,9 +1566,9 @@ static HRESULT opc_package_write_rels(struct zip_archive *archive, IOpcRelations
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
IXmlWriter_SetOutput(writer, (IUnknown *)content);
|
hr = IXmlWriter_SetOutput(writer, (IUnknown *)content);
|
||||||
|
if (SUCCEEDED(hr))
|
||||||
hr = IXmlWriter_WriteStartDocument(writer, XmlStandalone_Yes);
|
hr = IXmlWriter_WriteStartDocument(writer, XmlStandalone_Yes);
|
||||||
if (SUCCEEDED(hr))
|
if (SUCCEEDED(hr))
|
||||||
hr = IXmlWriter_WriteStartElement(writer, NULL, relationshipsW, uriW);
|
hr = IXmlWriter_WriteStartElement(writer, NULL, relationshipsW, uriW);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue