This commit is contained in:
quaK 2022-05-28 13:15:17 +03:00
parent f23fa6a969
commit f3ee51bc65

View File

@ -40,7 +40,7 @@ launcher::mode detect_mode_from_arguments()
return launcher::mode::none; return launcher::mode::none;
} }
bool apply_dslr_patch(std::string* data) bool apply_aslr_patch(std::string* data)
{ {
if (data->size() < 0x1EE || (data->at(0x1EE) != static_cast<char>(0x60) && data->at(0x1EE) != static_cast<char>(0x20))) if (data->size() < 0x1EE || (data->at(0x1EE) != static_cast<char>(0x60) && data->at(0x1EE) != static_cast<char>(0x20)))
{ {
@ -56,7 +56,7 @@ void get_aslr_patched_binary(std::string* binary, std::string* data)
{ {
std::string patched_binary = "h1-mod\\" + *binary; std::string patched_binary = "h1-mod\\" + *binary;
if (!apply_dslr_patch(data)) if (!apply_aslr_patch(data))
{ {
throw std::runtime_error(utils::string::va( throw std::runtime_error(utils::string::va(
"Could not create aslr patched binary!\n(%s)", "Could not create aslr patched binary!\n(%s)",