Add thanks for frognik

This commit is contained in:
ChrisMiuchiz 2019-10-15 00:53:52 -04:00
parent db4d858dc9
commit 537ca7f2d9
1 changed files with 1 additions and 0 deletions

View File

@ -168,6 +168,7 @@ void no_optimize ASMStartMods() {
} }
void PatchFreeImage(){ void PatchFreeImage(){
// Thanks to frognik for showing off this method!
DWORD oldProtect; DWORD oldProtect;
void* patchaddr = (void*)GetModuleHandleA("FreeImage.dll") + 0x1E8C12; void* patchaddr = (void*)GetModuleHandleA("FreeImage.dll") + 0x1E8C12;
VirtualProtect((LPVOID)patchaddr, 8, PAGE_EXECUTE_READWRITE, &oldProtect); VirtualProtect((LPVOID)patchaddr, 8, PAGE_EXECUTE_READWRITE, &oldProtect);