fix com proxy crashing on 64bit builds due to failing to properly detect target CPU archetecture

This commit is contained in:
Hay1tsme
2026-08-01 22:35:13 -04:00
parent afece371fb
commit 25be44b13f
+6 -2
View File
@@ -15,7 +15,7 @@ static HRESULT STDMETHODCALLTYPE com_proxy_query_interface(
static ULONG STDMETHODCALLTYPE com_proxy_addref(IUnknown *unk);
static ULONG STDMETHODCALLTYPE com_proxy_release(IUnknown *unk);
#ifdef __amd64
#if _WIN64 || __amd64__
/***** 64-BIT TRAMPOLINE *****/
@@ -34,7 +34,7 @@ static const uint8_t com_proxy_tramp[] = {
0xFF, 0xE0,
};
#else
#elif _WIN32 || __i386__
/***** 32-BIT TRAMPOLINE *****/
@@ -59,6 +59,10 @@ static const uint8_t com_proxy_tramp[] = {
0xFF, 0xE1
};
#else
#error "Failed to detect target CPU archetecture in hook/com-proxy.c"
#endif
HRESULT com_proxy_wrap(