From 4ecd6260aa0799659e228da8a650d35f661b6efe Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Tue, 29 Mar 2016 15:15:06 +0200 Subject: [PATCH] Hash reading issue fixed --- UpdCheck/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UpdCheck/main.cpp b/UpdCheck/main.cpp index 33fba01..88ed99c 100644 --- a/UpdCheck/main.cpp +++ b/UpdCheck/main.cpp @@ -242,11 +242,11 @@ int CALLBACK WinMain(_In_ HINSTANCE hInstance, _In_ HINSTANCE hPrevInstance, _In // Read the hash. wxString content(elLocaleNote->GetNodeContent()); hash.resize(wxHexDecodedSize(content.length())); - size_t res = wxHexDecode(sig.data(), sig.capacity(), content, wxHexDecodeMode_SkipWS); + size_t res = wxHexDecode(hash.data(), hash.capacity(), content, wxHexDecodeMode_SkipWS); if (res != wxCONV_FAILED) - sig.resize(res); + hash.resize(res); else - sig.clear(); + hash.clear(); } } }