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];