Module: wine Branch: master Commit: de91f264cbff3217e2d455f606c0b8a9b79f8147 URL: http://source.winehq.org/git/wine.git/?a=commit;h=de91f264cbff3217e2d455f606...
Author: Piotr Caban piotr@codeweavers.com Date: Mon Oct 31 12:32:22 2011 +0100
msxml3: Fix position computation in libxmlStartElementNS.
---
dlls/msxml3/saxreader.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c index 29ab60e..7cd2318 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))