diff options
| author | iximeow <me@iximeow.net> | 2025-06-01 08:46:23 +0000 |
|---|---|---|
| committer | iximeow <me@iximeow.net> | 2025-06-01 09:21:57 +0000 |
| commit | 72968a35438e5284a0ba63c947e70f8880b3abb5 (patch) | |
| tree | 5a266db6e590a42601c3bd63d41f999ed57a3a14 /ffi | |
| parent | a4204b5a3807bf41a2bb5801f874e7f263f8db1f (diff) | |
DecodeEverything wasn't useful, no better than InstDecoder::default()??
Diffstat (limited to 'ffi')
| -rw-r--r-- | ffi/src/long_mode.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ffi/src/long_mode.rs b/ffi/src/long_mode.rs index a9e296f..d0d3f22 100644 --- a/ffi/src/long_mode.rs +++ b/ffi/src/long_mode.rs @@ -5,7 +5,7 @@ use yaxpeax_x86::long_mode; pub unsafe extern "C" fn yaxpeax_x86_64_decode(data: *const u8, length: u64, inst: *mut long_mode::Instruction) -> bool { let inst: &mut long_mode::Instruction = core::mem::transmute(inst); let mut reader = U8Reader::new(core::slice::from_raw_parts(data as *const u8, length as usize)); - (yaxpeax_x86::long_mode::DecodeEverything {}).decode_into(inst, &mut reader).is_err() + <long_mode::Arch as Arch>::Decoder::default().decode_into(inst, &mut reader).is_err() } #[no_mangle] |
