From 94102ee31b97a3205cd00594d168da5437571380 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Jab=C5=82o=C5=84ski?= Date: Sun, 14 Apr 2024 19:31:56 +0200 Subject: [PATCH] Fix an ARM compile error --- COREDLL/dllmain.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/COREDLL/dllmain.cpp b/COREDLL/dllmain.cpp index 58365a4..e5f381a 100644 --- a/COREDLL/dllmain.cpp +++ b/COREDLL/dllmain.cpp @@ -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 @@ -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;