diff options
| author | auth12 <[email protected]> | 2020-08-01 11:15:55 -0700 |
|---|---|---|
| committer | auth12 <[email protected]> | 2020-08-01 11:15:55 -0700 |
| commit | 5bbda279685f52693d4f5d9cb1500e295e06fc1e (patch) | |
| tree | 87cc4aa993afe879f8b5dffbbe7013dcf8e5dc44 /client/src/util/syscalls.h | |
| parent | Added server support for both x64 and x32 images with automatic selection. (diff) | |
| download | loader-5bbda279685f52693d4f5d9cb1500e295e06fc1e.tar.xz loader-5bbda279685f52693d4f5d9cb1500e295e06fc1e.zip | |
Started security.
Diffstat (limited to 'client/src/util/syscalls.h')
| -rw-r--r-- | client/src/util/syscalls.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/util/syscalls.h b/client/src/util/syscalls.h index 713e24c..0855d18 100644 --- a/client/src/util/syscalls.h +++ b/client/src/util/syscalls.h @@ -17,6 +17,10 @@ public: return reinterpret_cast<T>(uintptr_t(m_call_table) + (m_indexes[func.data()].first * m_stub.size())); }; + uintptr_t operator()(const std::string_view func) { + return uintptr_t(m_call_table) + (m_indexes[func.data()].first * m_stub.size()); + } + uintptr_t operator()() { return uintptr_t(m_call_table); } |