Skip to content

Commit

Permalink
Fix an ARM compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNNX committed Apr 14, 2024
1 parent 49ff834 commit 94102ee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions COREDLL/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ typedef UINT(__cdecl* CE_ENTRYPOINT)(HINSTANCE, HINSTANCE, LPCWSTR, int);
void WceclEntrypointWrapper();

#ifdef _M_IX86
#else
/* FIXME: No patching code for architectures other than x86. */
#endif

#pragma pack(push, 1)

static struct
Expand All @@ -16,9 +20,6 @@ static struct
}
EntrypointHijackCode[] = { {0x68, WceclEntrypointWrapper, 0xC3} };
#pragma pack(pop)
#else
/* FIXME: No patching code for architectures other than x86. */
#endif

static BYTE EntrypointRepairCode[sizeof(EntrypointHijackCode)];
CE_ENTRYPOINT Entrypoint;
Expand Down

0 comments on commit 94102ee

Please sign in to comment.