forked from TeamTofuShop/segatools
platform: add epay hook
This commit is contained in:
@ -188,15 +188,16 @@ static BOOL WINAPI my_CreateProcessA(
|
||||
continue;
|
||||
}
|
||||
|
||||
dprintf("CreateProcess: Hooking child process %s\n", lpCommandLine);
|
||||
char new_cmd[MAX_PATH];
|
||||
dprintf("CreateProcess: Hooking child process %s %s\n", lpApplicationName, lpCommandLine);
|
||||
char new_cmd[MAX_PATH] = {0};
|
||||
strcat_s(new_cmd, MAX_PATH, process_syms_a->head);
|
||||
strcat_s(new_cmd, MAX_PATH, lpCommandLine);
|
||||
|
||||
if (process_syms_a->tail[0]) {
|
||||
if (process_syms_a->tail != NULL) {
|
||||
strcat_s(new_cmd, MAX_PATH, process_syms_a->tail);
|
||||
}
|
||||
|
||||
dprintf("CreateProcess: Replaced CreateProcessA %s\n", new_cmd);
|
||||
return next_CreateProcessA(
|
||||
lpApplicationName,
|
||||
new_cmd,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
HRESULT createprocess_push_hook_w(const wchar_t *name, const wchar_t *head, const wchar_t *tail);
|
||||
|
Reference in New Issue
Block a user