30 May
2023
30 May
'23
4:05 p.m.
Nikolay Sivov (@nsivov) commented about dlls/xmllite/writer.c:
- FIXME("%p %s\n", This, wine_dbgstr_w(pwszName)); + TRACE("%p %s\n", iface, wine_dbgstr_w(pwszName));
- switch (This->state) + if (is_empty_string(pwszName)) + return E_INVALIDARG; + + while (*p) + { + if (!is_ncnamechar(*p)) + return WC_E_NAMECHARACTER; + + count++; + p++; + }
This does not look right. It probably should use https://www.w3.org/TR/xml/#NT-Name or similar, e.g. you should not be able to start with a dot. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2928#note_34139