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 "cpputil/cppcstring.h"
#include "mono/monoobject.h"
#include "growl.h"
//#include <boost/foreach.hpp>
#include <cstdio>
#include <string>

View File

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