Skip to content

Commit

Permalink
fix assembly2
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirteenAG committed Jan 16, 2024
1 parent 6425bf9 commit 7b2c173
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/extrainfo.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public:
{
struct MS_PAUSED_HOOK
{
void operator()(injector::reg_pack& regs)
void operator()(SafetyHookContext& regs)
{
static std::wstring extra = L"";
regs.eax += 0x78;
Expand All @@ -47,7 +47,7 @@ public:

regs.eax = (uintptr_t)extra.c_str();
}
}; injector::MakeInline<MS_PAUSED_HOOK>(pattern.get_first(0));
}; injector::MakeInline2<MS_PAUSED_HOOK>(pattern.get_first(0));
}
}
};
Expand Down
1 change: 1 addition & 0 deletions source/includes/assembly2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ namespace injector
template<class FuncT>
void MakeInline2(memory_pointer_tr at)
{
MakeNOP(at, 5);
typedef injector_asm2::wrapper<FuncT> functor;
if(false) functor::call(nullptr); // To instantiate the template, if not done _asm will fail
injector_asm2::make_SafetyHookContext_and_call<functor>(at);
Expand Down

0 comments on commit 7b2c173

Please sign in to comment.