From 40ffe7d7f82b4c847ccda4816f7cdef3208886e7 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Thu, 17 Mar 2016 12:41:09 +0100 Subject: [PATCH] XML hashing updated --- src/xml.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/xml.cpp b/src/xml.cpp index e7d8e73..aed3d2b 100644 --- a/src/xml.cpp +++ b/src/xml.cpp @@ -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")); } }