Fix hooking
This commit is contained in:
parent
a5a3fdd672
commit
0d57bc01c4
@ -20,16 +20,6 @@ BOOL WINAPI system_parameters_info_a(const UINT uiAction, const UINT uiParam, co
|
|||||||
return SystemParametersInfoA(uiAction, uiParam, pvParam, fWinIni);
|
return SystemParametersInfoA(uiAction, uiParam, pvParam, fWinIni);
|
||||||
}
|
}
|
||||||
|
|
||||||
FARPROC WINAPI get_proc_address(const HMODULE hModule, const LPCSTR lpProcName)
|
|
||||||
{
|
|
||||||
if (lpProcName == "InitializeCriticalSectionEx"s)
|
|
||||||
{
|
|
||||||
component_loader::post_unpack();
|
|
||||||
}
|
|
||||||
|
|
||||||
return GetProcAddress(hModule, lpProcName);
|
|
||||||
}
|
|
||||||
|
|
||||||
launcher::mode detect_mode_from_arguments()
|
launcher::mode detect_mode_from_arguments()
|
||||||
{
|
{
|
||||||
if (utils::flags::has_flag("dedicated"))
|
if (utils::flags::has_flag("dedicated"))
|
||||||
@ -70,10 +60,6 @@ FARPROC load_binary(const launcher::mode mode, uint64_t* base_address)
|
|||||||
{
|
{
|
||||||
return system_parameters_info_a;
|
return system_parameters_info_a;
|
||||||
}
|
}
|
||||||
else if (function == "GetProcAddress")
|
|
||||||
{
|
|
||||||
return get_proc_address;
|
|
||||||
}
|
|
||||||
|
|
||||||
return component_loader::load_import(library, function);
|
return component_loader::load_import(library, function);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user