mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-27 05:34:14 +08:00
fix
This commit is contained in:
parent
4d058af250
commit
30b5d7eedc
@ -43,12 +43,11 @@ namespace
|
|||||||
std::optional<HookParam> ParseHCode(std::wstring HCode,std::optional<HookParam> hpo={})
|
std::optional<HookParam> ParseHCode(std::wstring HCode,std::optional<HookParam> hpo={})
|
||||||
{
|
{
|
||||||
auto hp=hpo?hpo.value():HookParam{};
|
auto hp=hpo?hpo.value():HookParam{};
|
||||||
|
if(HCode[0]=='L')
|
||||||
|
hp.type|=HOOK_RETURN;
|
||||||
|
|
||||||
switch (HCode[0])
|
switch (HCode[0])
|
||||||
{
|
{
|
||||||
case L'L':
|
|
||||||
hp.type|=HOOK_RETURN;
|
|
||||||
break;
|
|
||||||
case L'B':
|
case L'B':
|
||||||
hp.type|=BREAK_POINT;
|
hp.type|=BREAK_POINT;
|
||||||
case L'H':
|
case L'H':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user