From 23e28754730f5b864fd0e7475ac2596b2b5899cf Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Thu, 12 Jul 2012 22:08:10 +0200 Subject: XML_Parse returns enum XML_Status Change-Id: Ie4dde5aa412dae05d2629ce5675356db70b2529b --- shell/source/all/xml_parser.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'shell') diff --git a/shell/source/all/xml_parser.cxx b/shell/source/all/xml_parser.cxx index e7740d0f4a5c..6c2daaa8a82f 100644 --- a/shell/source/all/xml_parser.cxx +++ b/shell/source/all/xml_parser.cxx @@ -177,13 +177,15 @@ void xml_parser::init() void xml_parser::parse(const char* XmlData, size_t Length, bool IsFinal) { - if (0 == XML_Parse(xml_parser_, XmlData, Length, IsFinal)) + if (XML_STATUS_ERROR == XML_Parse(xml_parser_, XmlData, Length, IsFinal)) + { throw xml_parser_exception( (char*)XML_ErrorString(XML_GetErrorCode(xml_parser_)), (int)XML_GetErrorCode(xml_parser_), XML_GetCurrentLineNumber(xml_parser_), XML_GetCurrentColumnNumber(xml_parser_), XML_GetCurrentByteIndex(xml_parser_)); + } } void xml_parser::set_document_handler( -- cgit