Skip to content

Commit

Permalink
Fix MINT.h
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Aug 27, 2024
1 parent b0bbc88 commit fe9a3b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Plugins/ThreadGuard/ThreadManager.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <MINT.h>
#include <Veil.h>
#include "metahook.h"
#include "ThreadManager.h"
#include <vector>
Expand Down
2 changes: 1 addition & 1 deletion Plugins/ThreadGuard/privatehook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void Engine_InstallHook(HMODULE hModule, BlobHandle_t hBlobModule)
pinst->detail->x86.operands[1].type == X86_OP_MEM &&
pinst->detail->x86.operands[1].mem.base == 0)
{//A1 40 77 7B 02 mov eax, gl_backbuffer_fbo
ULONG_PTR imm = pinst->detail->x86.operands[1].mem.disp;
ULONG_PTR imm = (ULONG_PTR)pinst->detail->x86.operands[1].mem.disp;

if (imm >= (ULONG_PTR)g_dwEngineDataBase && imm < (ULONG_PTR)g_dwEngineDataBase + g_dwEngineDataSize)
{
Expand Down

0 comments on commit fe9a3b1

Please sign in to comment.