Skip to content

Commit

Permalink
fix compile err
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Oct 8, 2024
1 parent 4fbda29 commit 573bfb5
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions fallguys/meta_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,6 @@ void DisasmSingleCallback_FindGotPltTarget(void* inst, byte* address, size_t ins
}
}

class CDisasmFindGotPltTargetContext
{
public:
char* gotplt;
char* result;
};

qboolean DisasmCallback_FindGotPltTarget(void* inst, byte* address, size_t instLen, int instCount, int depth, void* context)
{
auto pinst = (struct cs_insn*)inst;
Expand Down Expand Up @@ -370,7 +363,7 @@ C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME /* now */,
auto pFound = LOCATE_FROM_SIGNATURE_FROM_FUNCTION(searchBegin, searchEnd - searchBegin, pattern);
if (pFound)
{
auto pFoundNextInstruction = pFound + sizeof(pattern) - 1;
auto pFoundNextInstruction = (char *)pFound + sizeof(pattern) - 1;

CDisasmFindGotPltTargetContext ctx = { 0 };

Expand Down Expand Up @@ -432,7 +425,7 @@ C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME /* now */,
auto pFound = LOCATE_FROM_SIGNATURE_FROM_FUNCTION(searchBegin, searchEnd - searchBegin, pattern);
if (pFound)
{
auto pFoundNextInstruction = pFound + sizeof(pattern) - 1;
auto pFoundNextInstruction = (char*)pFound + sizeof(pattern) - 1;

CDisasmFindGotPltTargetContext ctx = { 0 };

Expand Down

0 comments on commit 573bfb5

Please sign in to comment.