[Main] Remove newlines
This commit is contained in:
parent
01cef9152f
commit
7943aea010
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Main
|
||||
{
|
||||
static Utils::Hook EntryPointHook;
|
||||
Utils::Hook EntryPointHook;
|
||||
|
||||
void SetEnvironment()
|
||||
{
|
||||
@ -56,13 +56,11 @@ BOOL APIENTRY DllMain(HMODULE /*hModule*/, DWORD ul_reason_for_call, LPVOID /*l
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
DWORD oldProtect;
|
||||
std::uint8_t* module = reinterpret_cast<std::uint8_t*>(GetModuleHandle(NULL));
|
||||
//VirtualProtect(module, 0x6C73000, PAGE_EXECUTE_READWRITE, &oldProtect); // Unprotect the entire process
|
||||
VirtualProtect(module + 0x1000, 0x2D6000, PAGE_EXECUTE_READ, &oldProtect); // Protect the .text segment
|
||||
|
||||
|
||||
Main::EntryPointHook.initialize(0x6BAC0F, [] ()
|
||||
{
|
||||
__asm
|
||||
@ -73,7 +71,6 @@ BOOL APIENTRY DllMain(HMODULE /*hModule*/, DWORD ul_reason_for_call, LPVOID /*l
|
||||
mov eax, 6BAC0Fh
|
||||
jmp eax
|
||||
}
|
||||
|
||||
})->install();
|
||||
}
|
||||
else if (ul_reason_for_call == DLL_PROCESS_DETACH)
|
||||
|
Loading…
Reference in New Issue
Block a user