The buffer returned by IXmlReader::GetValue gets invalidated after the XmlReader is used more in the future. The fileName buffer was getting re-used in a scenario where there were lots of nodes to read. The fix is simply to save it off to a local wstring.
Applying feedback over this PR
The buffer returned by IXmlReader::GetValue gets invalidated after the XmlReader is used more in the future. The fileName buffer was getting re-used in a scenario where there were lots of nodes to read. The fix is simply to save it off to a local wstring.