111
This commit is contained in:
@@ -128,9 +128,8 @@ static void example_listener_on_enter(GumInvocationListener* listener, GumInvoca
|
||||
else if (CONTAINS_STRING(self->ArgumentCount[i], "bool"))
|
||||
Sq_pushbool(v, (bool)Abuf);
|
||||
else if (CONTAINS_STRING(self->ArgumentCount[i], "string")) {
|
||||
wchar_t* ss = DNFTOOL::charTowchar_t((char*)Abuf);
|
||||
Sq_pushstring(v, ss, -1);
|
||||
delete[]ss;
|
||||
std::wstring ss = DNFTOOL::charTowchar_t((char*)Abuf);
|
||||
Sq_pushstring(v, ss.c_str(), -1);
|
||||
}
|
||||
else if (CONTAINS_STRING(self->ArgumentCount[i], "pointer"))
|
||||
Sq_pushuserpointer(v, (void*)Abuf);
|
||||
@@ -228,9 +227,8 @@ static void example_listener_on_leave(GumInvocationListener* listener, GumInvoca
|
||||
else if (CONTAINS_STRING(self->ArgumentCount[i], "bool"))
|
||||
Sq_pushbool(v, (bool)Abuf);
|
||||
else if (CONTAINS_STRING(self->ArgumentCount[i], "string")) {
|
||||
wchar_t* ss = DNFTOOL::charTowchar_t((char*)Abuf);
|
||||
Sq_pushstring(v, ss, -1);
|
||||
delete[]ss;
|
||||
std::wstring ss = DNFTOOL::charTowchar_t((char*)Abuf);
|
||||
Sq_pushstring(v, ss.c_str(), -1);
|
||||
}
|
||||
else if (CONTAINS_STRING(self->ArgumentCount[i], "pointer"))
|
||||
Sq_pushuserpointer(v, (void*)Abuf);
|
||||
|
||||
Reference in New Issue
Block a user