Commit 09f37192 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

xmllite: Don't fail if standalone declaration is missing.

parent 376eff51
...@@ -1134,7 +1134,7 @@ static HRESULT reader_parse_sddecl(xmlreader *reader) ...@@ -1134,7 +1134,7 @@ static HRESULT reader_parse_sddecl(xmlreader *reader)
UINT start; UINT start;
HRESULT hr; HRESULT hr;
if (!reader_skipspaces(reader)) return WC_E_WHITESPACE; if (!reader_skipspaces(reader)) return S_FALSE;
if (reader_cmp(reader, standaloneW)) return S_FALSE; if (reader_cmp(reader, standaloneW)) return S_FALSE;
reader_init_strvalue(reader_get_cur(reader), 10, &name); reader_init_strvalue(reader_get_cur(reader), 10, &name);
......
...@@ -760,16 +760,13 @@ todo_wine { ...@@ -760,16 +760,13 @@ todo_wine {
type = -1; type = -1;
hr = IXmlReader_Read(reader, &type); hr = IXmlReader_Read(reader, &type);
todo_wine
ok(hr == S_OK, "expected S_OK, got %08x\n", hr); ok(hr == S_OK, "expected S_OK, got %08x\n", hr);
todo_wine
ok(type == XmlNodeType_XmlDeclaration, "expected XmlDeclaration, got %s\n", type_to_str(type)); ok(type == XmlNodeType_XmlDeclaration, "expected XmlDeclaration, got %s\n", type_to_str(type));
ok_pos(reader, 1, 3, 1, 21, TRUE); ok_pos(reader, 1, 3, 1, 21, TRUE);
test_read_state(reader, XmlReadState_Interactive, -1, TRUE); test_read_state(reader, XmlReadState_Interactive, -1, TRUE);
hr = IXmlReader_GetValue(reader, &val, NULL); hr = IXmlReader_GetValue(reader, &val, NULL);
ok(hr == S_OK, "expected S_OK, got %08x\n", hr); ok(hr == S_OK, "expected S_OK, got %08x\n", hr);
todo_wine
ok(*val == 0, "got %s\n", wine_dbgstr_w(val)); ok(*val == 0, "got %s\n", wine_dbgstr_w(val));
/* check attributes */ /* 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