From 41a722d9143ccfe2358b33707efebbf7a4238e2f Mon Sep 17 00:00:00 2001 From: 0TheSpy <5511c282@opayq.com> Date: Mon, 14 Nov 2022 13:23:12 +0300 Subject: [PATCH] Update Interfaces.cpp --- SpyCustom/Interfaces.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SpyCustom/Interfaces.cpp b/SpyCustom/Interfaces.cpp index da20476..f66912a 100644 --- a/SpyCustom/Interfaces.cpp +++ b/SpyCustom/Interfaces.cpp @@ -241,10 +241,11 @@ void NETSetConVar(const char* cvarname, const char* cvarvalue) //__asm pushad char name[1024]; char value[1024]; + ZeroMemory(name, 1024); ZeroMemory(value, 1024); strcpy(name, cvarname); strcpy(value, cvarvalue); - static void* pvSetConVar = (void*)FindPatternV2(XorStr("engine.dll"), XorStr("8D 4C 24 1C E8 ? ? ? ? 56")); + static void* pvSetConVar = (void*)FindPatternV2(("engine.dll"), ("8D 4C 24 1C E8 ? ? ? ? 56")); printfdbg("NETSetConVar %s %s\n", cvarname, value); @@ -279,4 +280,4 @@ void ShowMenu(std::string text) } } - \ No newline at end of file +