[Main] Remove newlines

This commit is contained in:
momo5502 2016-11-25 20:32:33 +01:00
parent 01cef9152f
commit 7943aea010

View File

@ -2,7 +2,7 @@
namespace Main namespace Main
{ {
static Utils::Hook EntryPointHook; Utils::Hook EntryPointHook;
void SetEnvironment() void SetEnvironment()
{ {
@ -56,13 +56,11 @@ BOOL APIENTRY DllMain(HMODULE /*hModule*/, DWORD ul_reason_for_call, LPVOID /*l
return FALSE; return FALSE;
} }
DWORD oldProtect; DWORD oldProtect;
std::uint8_t* module = reinterpret_cast<std::uint8_t*>(GetModuleHandle(NULL)); std::uint8_t* module = reinterpret_cast<std::uint8_t*>(GetModuleHandle(NULL));
//VirtualProtect(module, 0x6C73000, PAGE_EXECUTE_READWRITE, &oldProtect); // Unprotect the entire process //VirtualProtect(module, 0x6C73000, PAGE_EXECUTE_READWRITE, &oldProtect); // Unprotect the entire process
VirtualProtect(module + 0x1000, 0x2D6000, PAGE_EXECUTE_READ, &oldProtect); // Protect the .text segment VirtualProtect(module + 0x1000, 0x2D6000, PAGE_EXECUTE_READ, &oldProtect); // Protect the .text segment
Main::EntryPointHook.initialize(0x6BAC0F, [] () Main::EntryPointHook.initialize(0x6BAC0F, [] ()
{ {
__asm __asm
@ -73,7 +71,6 @@ BOOL APIENTRY DllMain(HMODULE /*hModule*/, DWORD ul_reason_for_call, LPVOID /*l
mov eax, 6BAC0Fh mov eax, 6BAC0Fh
jmp eax jmp eax
} }
})->install(); })->install();
} }
else if (ul_reason_for_call == DLL_PROCESS_DETACH) else if (ul_reason_for_call == DLL_PROCESS_DETACH)