From f13ad26dfcb1583d50c1ac0039475e27ca79a36d Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sat, 3 Sep 2016 15:57:19 +0200 Subject: [PATCH] Frogot to increment variable after pushing to stack --- src/Components/Modules/Logger.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Components/Modules/Logger.cpp b/src/Components/Modules/Logger.cpp index 5fecb00a..9f614366 100644 --- a/src/Components/Modules/Logger.cpp +++ b/src/Components/Modules/Logger.cpp @@ -111,6 +111,8 @@ namespace Components void Logger::NetworkLog(const char* data, bool gLog) { + if (!data) return; + std::string buffer(data); for (auto& addr : Logger::LoggingAddresses[gLog & 1]) { @@ -123,7 +125,7 @@ namespace Components __asm { push 1 - push[esp + 4h] + push [esp + 8h] call Logger::NetworkLog add esp, 8h @@ -147,7 +149,7 @@ namespace Components returnPrint: push 0 - push [esp + 8h] + push [esp + 0Ch] call Logger::NetworkLog add esp, 8h