msxml3: Fix position computation in libxmlStartElementNS.

This commit is contained in:
Piotr Caban 2011-10-31 12:32:22 +01:00 committed by Alexandre Julliard
parent 401f6725d5
commit de91f264cb
1 changed files with 6 additions and 6 deletions

View File

@ -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))