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; saxattributes *attr;
int index; int index;
if(This->saxreader->version >= MSXML6) index = 0;
update_position(This, NULL); if(*(This->pParserCtxt->input->cur) == '/')
else if(*(This->pParserCtxt->input->cur) == '/') index++;
update_position(This, (xmlChar*)This->pParserCtxt->input->cur+2); if(This->saxreader->version < MSXML6)
else index++;
update_position(This, (xmlChar*)This->pParserCtxt->input->cur+1); update_position(This, (xmlChar*)This->pParserCtxt->input->cur+index);
hr = namespacePush(This, nb_namespaces); hr = namespacePush(This, nb_namespaces);
if(hr==S_OK && has_content_handler(This)) if(hr==S_OK && has_content_handler(This))