Commit 7c44c65e authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

xmllite/reader: Return proper name for xml declaration PI.

parent 3f50319e
......@@ -1299,8 +1299,8 @@ static HRESULT reader_parse_xmldecl(xmlreader *reader)
reader_skipn(reader, 2);
reader->nodetype = XmlNodeType_XmlDeclaration;
reader_set_strvalue(reader, StringValue_LocalName, &strval_empty);
reader_set_strvalue(reader, StringValue_QualifiedName, &strval_empty);
reader_set_strvalue(reader, StringValue_LocalName, &strval_xml);
reader_set_strvalue(reader, StringValue_QualifiedName, &strval_xml);
reader_set_strvalue(reader, StringValue_Value, &strval_empty);
return S_OK;
......
......@@ -869,9 +869,14 @@ todo_wine {
ok(hr == S_OK, "expected S_OK, got %08x\n", hr);
ok(*val == 0, "got %s\n", wine_dbgstr_w(val));
val = NULL;
hr = IXmlReader_GetLocalName(reader, &val, NULL);
ok(hr == S_OK, "expected S_OK, got %08x\n", hr);
todo_wine
ok(!lstrcmpW(val, xmlW), "got %s\n", wine_dbgstr_w(val));
val = NULL;
hr = IXmlReader_GetQualifiedName(reader, &val, NULL);
ok(hr == S_OK, "expected S_OK, got %08x\n", hr);
ok(!lstrcmpW(val, xmlW), "got %s\n", wine_dbgstr_w(val));
/* check attributes */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment