XML hashing updated

This commit is contained in:
Simon Rozman 2016-03-17 12:41:09 +01:00
parent b927b467a3
commit 40ffe7d7f8

View File

@ -35,7 +35,7 @@ void WXEXTEND_API wxXmlHashNode(_In_ HCRYPTHASH hash, const wxXmlNode *node)
case wxXML_ELEMENT_NODE:
{
{
static const BYTE element_in [] = "<";
static const BYTE element_in[] = "<";
// Hash the open tag.
wxVERIFY(::CryptHashData(hash, element_in, _countof(element_in) - 1, 0));
@ -115,6 +115,11 @@ void WXEXTEND_API wxXmlHashNode(_In_ HCRYPTHASH hash, const wxXmlNode *node)
// Hash the children.
for (wxXmlNode *child = node->GetChildren(); child; child = child->GetNext())
wxXmlHashNode(hash, child);
break;
}
default:
wxFAIL_MSG(wxT("unsupported XML node type"));
}
}