[PATCH 3/3] scrobj: Add a missing return value check (Coverity).

Sven Baars sven.wine at gmail.com
Sat Oct 19 14:20:54 CDT 2019


Signed-off-by: Sven Baars <sven.wine at gmail.com>
---
 dlls/scrobj/scrobj.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/scrobj/scrobj.c b/dlls/scrobj/scrobj.c
index 8d23c65f55..aa6ed0c6b5 100644
--- a/dlls/scrobj/scrobj.c
+++ b/dlls/scrobj/scrobj.c
@@ -1699,6 +1699,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"))
     {
-- 
2.17.1




More information about the wine-devel mailing list