mirror of
https://gitea.tendokyu.moe/TeamTofuShop/capnhook.git
synced 2026-10-05 05:18:08 +03:00
fix com proxy crashing on 64bit builds due to failing to properly detect target CPU archetecture
This commit is contained in:
+6
-2
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user