This commit is contained in:
恍兮惚兮 2024-05-10 15:19:22 +08:00
parent 4d058af250
commit 30b5d7eedc

View File

@ -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':