Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/TsudaKageyu/minhook.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTsuda Kageyu <tsuda.kageyu@gmail.com>2016-12-01 10:06:02 +0300
committerTsuda Kageyu <tsuda.kageyu@gmail.com>2016-12-01 10:06:02 +0300
commitb15bb408c475044462017c5c0c84565997b23de6 (patch)
tree8a0905d35ec2d09f322d1e57cf8e450502951328
parent6a225efd81e039622a2d5b65d1aae58170e9a12f (diff)
Check the CPU architecture in hde32.c/hde64.c.
-rw-r--r--src/hde/hde32.c4
-rw-r--r--src/hde/hde64.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/hde/hde32.c b/src/hde/hde32.c
index c3c62e8..e191f20 100644
--- a/src/hde/hde32.c
+++ b/src/hde/hde32.c
@@ -5,6 +5,8 @@
*
*/
+#ifdef _M_IX86
+
#include "hde32.h"
#include "table32.h"
@@ -320,3 +322,5 @@ unsigned int hde32_disasm(const void *code, hde32s *hs)
return (unsigned int)hs->len;
}
+
+#endif // _M_IX86
diff --git a/src/hde/hde64.c b/src/hde/hde64.c
index 72f9517..f432fc0 100644
--- a/src/hde/hde64.c
+++ b/src/hde/hde64.c
@@ -5,6 +5,8 @@
*
*/
+#ifdef _M_X64
+
#include "hde64.h"
#include "table64.h"
@@ -331,3 +333,5 @@ unsigned int hde64_disasm(const void *code, hde64s *hs)
return (unsigned int)hs->len;
}
+
+#endif // _M_X64