diff options
| author | boris <wzn@moneybot.cc> | 2019-01-01 20:53:10 +1300 |
|---|---|---|
| committer | boris <wzn@moneybot.cc> | 2019-01-01 20:53:10 +1300 |
| commit | 00b271f265450850336c8bcfdacc8671dbc8406a (patch) | |
| tree | 975b2257495295c077320955c33fd2744c0e00ca /csgo-loader/csgo-client/Security/SyscallManager.cpp | |
| parent | 7a3b48831bfc9c4aa8c39c1e42d5bf5dd73e43c5 (diff) | |
yah
Diffstat (limited to 'csgo-loader/csgo-client/Security/SyscallManager.cpp')
| -rw-r--r-- | csgo-loader/csgo-client/Security/SyscallManager.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/csgo-loader/csgo-client/Security/SyscallManager.cpp b/csgo-loader/csgo-client/Security/SyscallManager.cpp index 871b593..9bb1302 100644 --- a/csgo-loader/csgo-client/Security/SyscallManager.cpp +++ b/csgo-loader/csgo-client/Security/SyscallManager.cpp @@ -1,5 +1,4 @@ #include <Security/SyscallManager.hpp>
-#include <Security/FnvHash.hpp>
// Global accessor for SyscallManager.
Wrapper::SyscallManagerPtr Syscalls = std::make_unique<Wrapper::SyscallManager>();
@@ -23,7 +22,7 @@ namespace Wrapper GetSystemDirectoryA(SystemPath, MAX_PATH);
// Append 'ntdll.dll' to path.
- strcat_s(SystemPath, "\\ntdll.dll");
+ strcat_s(SystemPath, STR("\\ntdll.dll"));
// Open handle to 'ntdll.dll'.
std::ifstream FileHandle(SystemPath, std::ios::in | std::ios::binary);
@@ -139,7 +138,7 @@ namespace Wrapper // We've found a syscall.
uint8_t *Opcodes = (uint8_t *)(Buffer + FunctionRawOffset);
- if(!memcmp(Opcodes, "\x4C\x8B\xD1\xB8", 4))
+ if(!memcmp(Opcodes, STR("\x4C\x8B\xD1\xB8"), 4))
{
uint32_t SyscallIndex = *(uint32_t *)(Buffer + FunctionRawOffset + 4);
|
