Fix a buffer issue in RegisterHam (#495)

* Fix a buffer issue in RegisterHam

* AString classname as well
This commit is contained in:
Vincent Herbet
2018-07-13 16:23:03 +02:00
committed by GitHub
parent 975d877800
commit 5f5d6f1d5d
2 changed files with 15 additions and 12 deletions

View File

@@ -39,7 +39,7 @@ public:
char *ent; // ent name that's being hooked
int trampSize;
Hook(void **vtable_, int entry_, void *target_, bool voidcall, bool retbuf, int paramcount, char *name) :
Hook(void **vtable_, int entry_, void *target_, bool voidcall, bool retbuf, int paramcount, const char *name) :
func(NULL), vtable(vtable_), entry(entry_), target(target_), exec(0), del(0), tramp(NULL), trampSize(0)
{
// original function is vtable[entry]