Fix hooking

This commit is contained in:
momo5502 2022-05-17 11:38:49 +02:00
parent a5a3fdd672
commit 0d57bc01c4

View File

@ -20,16 +20,6 @@ BOOL WINAPI system_parameters_info_a(const UINT uiAction, const UINT uiParam, co
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()
{
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;
}
else if (function == "GetProcAddress")
{
return get_proc_address;
}
return component_loader::load_import(library, function);
});