From 4db29589a61f2e7cb663c5734f911c02206c7997 Mon Sep 17 00:00:00 2001 From: boris Date: Wed, 9 Jan 2019 20:51:16 +1300 Subject: whole buncha shit FIXME: loader currently corrupts heap on injection because i am retarded --- csgo-loader/csgo-client/Networking/TCPClient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'csgo-loader/csgo-client/Networking/TCPClient.cpp') diff --git a/csgo-loader/csgo-client/Networking/TCPClient.cpp b/csgo-loader/csgo-client/Networking/TCPClient.cpp index c974f88..2ff5095 100644 --- a/csgo-loader/csgo-client/Networking/TCPClient.cpp +++ b/csgo-loader/csgo-client/Networking/TCPClient.cpp @@ -144,12 +144,12 @@ namespace Networking if(EncryptionKey.empty()) return false; + std::memcpy(m_EncryptionKey, EncryptionKey.data(), EncryptionKey.size()); + WRAP_IF_DEBUG( printf("[DEBUG] Server handshake successful!\n"); ) - std::memcpy(m_EncryptionKey, EncryptionKey.data(), EncryptionKey.size()); - return true; } -- cgit v1.2.3