mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 21:20:25 +00:00
xmllite: Store start data pointer for comments.
This commit is contained in:
parent
a472d39b7d
commit
b97dd9b0e2
@ -1035,7 +1035,6 @@ static HRESULT reader_parse_comment(xmlreader *reader)
|
|||||||
{
|
{
|
||||||
start = reader->save;
|
start = reader->save;
|
||||||
ptr = reader_get_cur(reader);
|
ptr = reader_get_cur(reader);
|
||||||
reader->save = NULL;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1044,6 +1043,7 @@ static HRESULT reader_parse_comment(xmlreader *reader)
|
|||||||
reader_shrink(reader);
|
reader_shrink(reader);
|
||||||
ptr = start = reader_get_cur(reader);
|
ptr = start = reader_get_cur(reader);
|
||||||
reader->nodetype = XmlNodeType_Comment;
|
reader->nodetype = XmlNodeType_Comment;
|
||||||
|
reader->save = start;
|
||||||
reader_set_strvalue(reader, StringValue_LocalName, NULL);
|
reader_set_strvalue(reader, StringValue_LocalName, NULL);
|
||||||
reader_set_strvalue(reader, StringValue_QualifiedName, NULL);
|
reader_set_strvalue(reader, StringValue_QualifiedName, NULL);
|
||||||
reader_set_strvalue(reader, StringValue_Value, NULL);
|
reader_set_strvalue(reader, StringValue_Value, NULL);
|
||||||
@ -1067,7 +1067,7 @@ static HRESULT reader_parse_comment(xmlreader *reader)
|
|||||||
reader_set_strvalue(reader, StringValue_LocalName, &strval_empty);
|
reader_set_strvalue(reader, StringValue_LocalName, &strval_empty);
|
||||||
reader_set_strvalue(reader, StringValue_QualifiedName, &strval_empty);
|
reader_set_strvalue(reader, StringValue_QualifiedName, &strval_empty);
|
||||||
reader_set_strvalue(reader, StringValue_Value, &value);
|
reader_set_strvalue(reader, StringValue_Value, &value);
|
||||||
reader->nodetype = XmlNodeType_Comment;
|
reader->save = NULL;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user