Skip to content

Commit

Permalink
1.5.1
Browse files Browse the repository at this point in the history
fix wtf thumb addr + 1
  • Loading branch information
XMDS committed Aug 22, 2023
1 parent db9790f commit 1b6ed5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions GlossHook/include/Gloss.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ extern "C" {
return SetMemoryPermission(addr, len, NULL);
}

bool GetMemoryPermission(uintptr_t addr, p_flag* type, pid_t pid);
bool GetMemoryPermission(const char* libName, pid_t pid, uintptr_t addr, p_flag* type);
inline bool IsAddrExecute(uintptr_t addr)
{
p_flag type = { 0,0,0 };
GetMemoryPermission(addr, &type, -1);
GetMemoryPermission(NULL, -1, addr, &type);
return type.bExecute;
}

Expand Down
4 changes: 2 additions & 2 deletions GlossHook/single_include/Gloss.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ extern "C" {
return SetMemoryPermission(addr, len, NULL);
}

bool GetMemoryPermission(uintptr_t addr, p_flag* type, pid_t pid);
bool GetMemoryPermission(const char* libName, pid_t pid, uintptr_t addr, p_flag* type);
inline bool IsAddrExecute(uintptr_t addr)
{
p_flag type = { 0,0,0 };
GetMemoryPermission(addr, &type, -1);
GetMemoryPermission(NULL, -1, addr, &type);
return type.bExecute;
}

Expand Down

0 comments on commit 1b6ed5b

Please sign in to comment.