fix: some round messages doesn't get handled.

misc: cosmetic changes.
This commit is contained in:
dmitry 2020-06-18 09:28:43 +03:00
commit 6b8f8db4de
6 changed files with 23 additions and 32 deletions

View file

@ -90,10 +90,6 @@ public:
hookedBytes_ = makeUnique <uint8 []> (CodeLength);
}
~SimpleHook () {
disable ();
}
public:
bool patch (void *address, void *replacement) {
constexpr uint16 jmp = 0x25ff;

View file

@ -59,7 +59,7 @@ public:
#if defined (CR_WINDOWS)
handle_ = LoadLibraryA (file.chars ());
#else
handle_ = dlopen (file.chars (), RTLD_LAZY);
handle_ = dlopen (file.chars (), RTLD_NOW | RTLD_DEEPBIND | RTLD_LOCAL);
#endif
return handle_ != nullptr;
}