From 43eb22c57f3a6227f23178205139c775199db2c8 Mon Sep 17 00:00:00 2001 From: Sven Baars Date: Sat, 19 Oct 2019 21:20:54 +0200 Subject: [PATCH] scrobj: Add a missing return value check (Coverity). Signed-off-by: Sven Baars Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/scrobj/scrobj.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/scrobj/scrobj.c b/dlls/scrobj/scrobj.c index 1d378640399..427e4e54399 100644 --- a/dlls/scrobj/scrobj.c +++ b/dlls/scrobj/scrobj.c @@ -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")) {