From 44a036788307fb3b21848b4798b3b719b3f66be7 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Sat, 18 Aug 2018 14:47:30 -0400 Subject: [PATCH] engine bugfixes --- vnrhook/src/engine/engine.cc | 1 + vnrhook/src/main.cc | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/vnrhook/src/engine/engine.cc b/vnrhook/src/engine/engine.cc index ae89b92..2e4e339 100644 --- a/vnrhook/src/engine/engine.cc +++ b/vnrhook/src/engine/engine.cc @@ -21,6 +21,7 @@ #include "disasm/disasm.h" #include "cpputil/cppcstring.h" #include "mono/monoobject.h" +#include "growl.h" //#include #include #include diff --git a/vnrhook/src/main.cc b/vnrhook/src/main.cc index 3707663..f189cc4 100644 --- a/vnrhook/src/main.cc +++ b/vnrhook/src/main.cc @@ -86,8 +86,9 @@ BOOL WINAPI DllMain(HINSTANCE hModule, DWORD fdwReason, LPVOID unused) { VirtualQuery((void*)::processStopAddress, &info, sizeof(info)); ::processStopAddress = (DWORD)info.BaseAddress + info.RegionSize; - } while (info.Protect); + } while (info.Protect > PAGE_NOACCESS); #endif + processStopAddress -= info.RegionSize; { wchar_t hm_mutex[0x100];