engine bugfixes

This commit is contained in:
Akash Mozumdar 2018-08-18 14:47:30 -04:00
parent 34acf4f300
commit 44a0367883
2 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,7 @@
#include "disasm/disasm.h" #include "disasm/disasm.h"
#include "cpputil/cppcstring.h" #include "cpputil/cppcstring.h"
#include "mono/monoobject.h" #include "mono/monoobject.h"
#include "growl.h"
//#include <boost/foreach.hpp> //#include <boost/foreach.hpp>
#include <cstdio> #include <cstdio>
#include <string> #include <string>

View File

@ -86,8 +86,9 @@ BOOL WINAPI DllMain(HINSTANCE hModule, DWORD fdwReason, LPVOID unused)
{ {
VirtualQuery((void*)::processStopAddress, &info, sizeof(info)); VirtualQuery((void*)::processStopAddress, &info, sizeof(info));
::processStopAddress = (DWORD)info.BaseAddress + info.RegionSize; ::processStopAddress = (DWORD)info.BaseAddress + info.RegionSize;
} while (info.Protect); } while (info.Protect > PAGE_NOACCESS);
#endif #endif
processStopAddress -= info.RegionSize;
{ {
wchar_t hm_mutex[0x100]; wchar_t hm_mutex[0x100];