From 1ba75aeefae37094c7be8eba07ff81d4fe0f1f20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20H=C3=B6ner?= Date: Sun, 20 Nov 2022 16:43:47 +0100 Subject: [PATCH] Disassembler: fix argument type `usize` -> `u64` --- include/Zydis/Disassembler.h | 4 ++-- src/Disassembler.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/Zydis/Disassembler.h b/include/Zydis/Disassembler.h index 4aec701d..3b92db96 100644 --- a/include/Zydis/Disassembler.h +++ b/include/Zydis/Disassembler.h @@ -114,7 +114,7 @@ typedef struct ZydisDisassembledInstruction_ * @return A zyan status code. */ ZYDIS_EXPORT ZyanStatus ZydisDisassembleIntel(ZydisMachineMode machine_mode, - ZyanUSize runtime_address, const void* buffer, ZyanUSize length, + ZyanU64 runtime_address, const void* buffer, ZyanUSize length, ZydisDisassembledInstruction *instruction); /** @@ -123,7 +123,7 @@ ZYDIS_EXPORT ZyanStatus ZydisDisassembleIntel(ZydisMachineMode machine_mode, * @copydetails ZydisDisassembleIntel */ ZYDIS_EXPORT ZyanStatus ZydisDisassembleATT(ZydisMachineMode machine_mode, - ZyanUSize runtime_address, const void* buffer, ZyanUSize length, + ZyanU64 runtime_address, const void* buffer, ZyanUSize length, ZydisDisassembledInstruction *instruction); /* ============================================================================================== */ diff --git a/src/Disassembler.c b/src/Disassembler.c index 563c3113..15d51fae 100644 --- a/src/Disassembler.c +++ b/src/Disassembler.c @@ -32,7 +32,7 @@ /* ============================================================================================== */ static ZyanStatus ZydisDisassemble(ZydisMachineMode machine_mode, - ZyanUSize runtime_address, const void* buffer, ZyanUSize length, + ZyanU64 runtime_address, const void* buffer, ZyanUSize length, ZydisDisassembledInstruction *instruction, ZydisFormatterStyle style) { if (!buffer || !instruction) @@ -87,7 +87,7 @@ static ZyanStatus ZydisDisassemble(ZydisMachineMode machine_mode, /* ============================================================================================== */ ZyanStatus ZydisDisassembleIntel(ZydisMachineMode machine_mode, - ZyanUSize runtime_address, const void* buffer, ZyanUSize length, + ZyanU64 runtime_address, const void* buffer, ZyanUSize length, ZydisDisassembledInstruction *instruction) { return ZydisDisassemble(machine_mode, runtime_address, buffer, length, instruction, @@ -95,7 +95,7 @@ ZyanStatus ZydisDisassembleIntel(ZydisMachineMode machine_mode, } ZyanStatus ZydisDisassembleATT(ZydisMachineMode machine_mode, - ZyanUSize runtime_address, const void* buffer, ZyanUSize length, + ZyanU64 runtime_address, const void* buffer, ZyanUSize length, ZydisDisassembledInstruction *instruction) { return ZydisDisassemble(machine_mode, runtime_address, buffer, length, instruction,