Signed-off-by: Sven Baars sven.wine@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")) {