From de91f264cbff3217e2d455f606c0b8a9b79f8147 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Mon, 31 Oct 2011 12:32:22 +0100 Subject: [PATCH] msxml3: Fix position computation in libxmlStartElementNS. --- dlls/msxml3/saxreader.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c index 29ab60e0a2b..7cd231841f2 100644 --- a/dlls/msxml3/saxreader.c +++ b/dlls/msxml3/saxreader.c @@ -1229,12 +1229,12 @@ static void libxmlStartElementNS( saxattributes *attr; int index; - if(This->saxreader->version >= MSXML6) - update_position(This, NULL); - else if(*(This->pParserCtxt->input->cur) == '/') - update_position(This, (xmlChar*)This->pParserCtxt->input->cur+2); - else - update_position(This, (xmlChar*)This->pParserCtxt->input->cur+1); + index = 0; + if(*(This->pParserCtxt->input->cur) == '/') + index++; + if(This->saxreader->version < MSXML6) + index++; + update_position(This, (xmlChar*)This->pParserCtxt->input->cur+index); hr = namespacePush(This, nb_namespaces); if(hr==S_OK && has_content_handler(This))