mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-24 20:24:13 +08:00
fix
This commit is contained in:
parent
fd0ae8e8e0
commit
4825df91f9
@ -123,13 +123,13 @@ namespace
|
|||||||
if (auto converted = StringToWideString((char*)info.text, info.hp.codepage))
|
if (auto converted = StringToWideString((char*)info.text, info.hp.codepage))
|
||||||
if (converted->size() > STRING)
|
if (converted->size() > STRING)
|
||||||
{
|
{
|
||||||
wcscpy_s(info.hp.hookcode,HOOKCODE_LEN, HookCode::Generate(info.hp, GetCurrentProcessId()).c_str());
|
wcscpy_s(info.hp.hookcode,HOOKCODE_LEN, HookCode::Generate(info.hp, processId).c_str());
|
||||||
OnHookFound(info.hp, std::move(converted.value()));
|
OnHookFound(info.hp, std::move(converted.value()));
|
||||||
}
|
}
|
||||||
if (auto converted = StringToWideString((char*)info.text, info.hp.codepage = CP_UTF8))
|
if (auto converted = StringToWideString((char*)info.text, info.hp.codepage = CP_UTF8))
|
||||||
if (converted->size() > STRING)
|
if (converted->size() > STRING)
|
||||||
{
|
{
|
||||||
wcscpy_s(info.hp.hookcode,HOOKCODE_LEN, HookCode::Generate(info.hp, GetCurrentProcessId()).c_str());
|
wcscpy_s(info.hp.hookcode,HOOKCODE_LEN, HookCode::Generate(info.hp, processId).c_str());
|
||||||
OnHookFound(info.hp, std::move(converted.value()));
|
OnHookFound(info.hp, std::move(converted.value()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user