its a strcpy :(

This commit is contained in:
DubbleClick
2023-11-10 18:01:57 +01:00
parent 656c6cb883
commit 30b29d476f
+1 -6
View File
@@ -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;
}