treat unity as full string

This commit is contained in:
Akash Mozumdar 2019-08-09 22:38:07 -04:00
parent 2e99d6b3f2
commit 594198c921
2 changed files with 2 additions and 2 deletions

View File

@ -16576,7 +16576,7 @@ void InsertMonoHook(HMODULE h)
{ {
HookParam hp = {}; HookParam hp = {};
hp.address = addr; hp.address = addr;
hp.type = USING_UNICODE; hp.type = USING_UNICODE | FULL_STRING;
hp.offset = 4; hp.offset = 4;
hp.text_fun = [](DWORD esp_base, HookParam*, BYTE, DWORD* data, DWORD* split, DWORD* len) hp.text_fun = [](DWORD esp_base, HookParam*, BYTE, DWORD* data, DWORD* split, DWORD* len)
{ {

View File

@ -89,7 +89,7 @@ namespace Engine
{ {
HookParam hp = {}; HookParam hp = {};
hp.address = addr; hp.address = addr;
hp.type = USING_STRING | USING_UNICODE; hp.type = USING_STRING | USING_UNICODE | FULL_STRING;
hp.offset = -0x20; // rcx hp.offset = -0x20; // rcx
hp.padding = 20; hp.padding = 20;
hp.length_fun = [](uintptr_t, uintptr_t data) hp.length_fun = [](uintptr_t, uintptr_t data)