From 02256be720bafb66a87c53a177218247f298fdb8 Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 9 Dec 2014 14:15:02 -0500 Subject: [PATCH] fxied build error for VS --- Destination.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Destination.cpp b/Destination.cpp index 0d94de75..5f6c8706 100644 --- a/Destination.cpp +++ b/Destination.cpp @@ -167,12 +167,15 @@ namespace client { if (m_Service) { - uint8_t k[32], t[32]; - memcpy (k, key, 32); - memcpy (t, tag, 32); - m_Service->post ([this,k,t](void) + struct + { + uint8_t k[32], t[32]; + } data; + memcpy (data.k, key, 32); + memcpy (data.t, tag, 32); + m_Service->post ([this,data](void) { - this->AddSessionKey (k, t); + this->AddSessionKey (data.k, data.t); }); return true; }