implement missing domcomment_replaceData
This doesn't look right. You're appending replacement string to the rest of initial string data,+ if((offset == 0) || ((count + offset) >= len)) + { + if(offset == 0){ + IXMLDOMComment_substringData(iface, count, len - count, &str); + hr = IXMLDOMComment_put_data(iface, str); + if(hr == S_OK) + hr = IXMLDOMComment_appendData(iface, p);