diff options
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);
|
