diff options
author | Zeex <zeex@rocketmail.com> | 2016-04-23 11:05:41 +0600 |
---|---|---|
committer | Zeex <zeex@rocketmail.com> | 2016-04-23 11:05:41 +0600 |
commit | 25ee731404e1e49b5ceeb39dc429e7251c026cf0 (patch) | |
tree | 62fcb4360531cb499ae7092350aaf3138c32e7ad /subhook_x86.c | |
parent | 748459345bebefe95e2d466e83394af5dba89d60 (diff) | |
download | subhook-25ee731404e1e49b5ceeb39dc429e7251c026cf0.zip subhook-25ee731404e1e49b5ceeb39dc429e7251c026cf0.tar.gz subhook-25ee731404e1e49b5ceeb39dc429e7251c026cf0.tar.bz2 |
Fix MSVC compile errors
Diffstat (limited to 'subhook_x86.c')
-rw-r--r-- | subhook_x86.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/subhook_x86.c b/subhook_x86.c index eefa8ed..a4504b8 100644 --- a/subhook_x86.c +++ b/subhook_x86.c @@ -34,6 +34,9 @@ #ifdef SUBHOOK_WINDOWS typedef unsigned __int8 uint8_t; typedef __int32 int32_t; + typedef unsigned __int32 uint32_t; + typedef __int64 int64_t; + typedef unsigned __int64 uint64_t; #if SUBHOOK_BITS == 64 typedef __int64 intptr_t; #elif SUBHOOK_BITS == 32 @@ -54,7 +57,7 @@ #define JMP_INSN_OPCODE 0xE9 struct subhook_jmp { uint8_t opcode; - uint32_t offset; + int32_t offset; }; #elif SUBHOOK_BITS == 64 // Since AMD64 doesn't support 64-bit direct jumps, |