From 1685a612886421324e71806f8cc50ea875889b1e Mon Sep 17 00:00:00 2001 From: momo5502 Date: Thu, 22 Jun 2017 18:31:06 +0200 Subject: [PATCH] [Colors] Make hook secure --- src/Components/Modules/Colors.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Components/Modules/Colors.cpp b/src/Components/Modules/Colors.cpp index d30fd42e..25ff7d95 100644 --- a/src/Components/Modules/Colors.cpp +++ b/src/Components/Modules/Colors.cpp @@ -208,12 +208,12 @@ namespace Components { __asm { - push ebx - push [esp + 8h] // Index + pushad + push [esp + 24h] // Index push esi // Color ref call Colors::LookupColor add esp, 8h - pop ebx + popad retn } }