Skip to content

Commit

Permalink
Module: fix compilation for x86 (#8)
Browse files Browse the repository at this point in the history
* Module: fix compilation for x86

* Module: fix peb offset for x86
  • Loading branch information
ThirteenAG authored Jul 7, 2024
1 parent 4966b94 commit bc28f55
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,11 @@ namespace utility {
return;
}

#if defined(_M_X64)
auto peb = (PEB*)__readgsqword(0x60);
#else
auto peb = (PEB*)__readfsdword(0x30);
#endif

if (peb == nullptr) {
return;
Expand Down

0 comments on commit bc28f55

Please sign in to comment.