scrobj: Add a missing return value check (Coverity).

Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Sven Baars 2019-10-19 21:20:54 +02:00 committed by Alexandre Julliard
parent dd9d2bdbbd
commit 43eb22c57f
1 changed files with 2 additions and 0 deletions

View File

@ -1695,6 +1695,8 @@ static HRESULT parse_scriptlet_file(struct scriptlet_factory *factory, const WCH
hres = next_xml_node(factory, &node_type);
if (hres == S_OK && node_type == XmlNodeType_XmlDeclaration)
hres = next_xml_node(factory, &node_type);
if (FAILED(hres))
return hres;
if (node_type != XmlNodeType_Element || !is_xml_name(factory, L"component"))
{