From 30b29d476f853cbf6f4b479e1ee9797cea21d5e8 Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Fri, 10 Nov 2023 18:01:57 +0100 Subject: [PATCH] its a strcpy :( --- source/uMod_DX9_dll.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/source/uMod_DX9_dll.cpp b/source/uMod_DX9_dll.cpp index 86af694..33bfaa1 100644 --- a/source/uMod_DX9_dll.cpp +++ b/source/uMod_DX9_dll.cpp @@ -327,12 +327,7 @@ bool HookThisProgram(char* ret) GetModuleFileName(GetModuleHandle(nullptr), Game, MAX_PATH); //ask for name and path of this executable // we inject directly - int i = 0; - while (Game[i]) { - ret[i] = Game[i]; - i++; - } - ret[i] = 0; + strcpy(ret, Game); return true; }