Nikolay Sivov (@nsivov) commented about dlls/xmllite/writer.c:
return write_escaped_string(This, string, ~0u);
}
+static HRESULT WINAPI xmlwriter_WriteChars(IXmlWriter *iface, const WCHAR *pwch, UINT cwch) +{
- xmlwriter *writer = impl_from_IXmlWriter(iface);
- TRACE("%p, %s, %d\n", writer, debugstr_wn(pwch, cwch), cwch);
- if ((pwch == NULL && cwch != 0))
return WC_E_XMLCHARACTER;
- else if ((pwch == NULL && cwch == 0))
return S_OK;
- else if ((is_empty_string(pwch) && cwch == 0))
return S_OK;
It's not clear if this should come before state checks.