From 79c06c1517b0d1084e9119ef7c8ff511b8a32385 Mon Sep 17 00:00:00 2001 From: slxdy Date: Thu, 1 Aug 2024 01:52:06 +0200 Subject: [PATCH] Fixed the params order of `process_vm_readv_k32` --- src/Reloaded.Memory/Native/Unix/Posix.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Reloaded.Memory/Native/Unix/Posix.cs b/src/Reloaded.Memory/Native/Unix/Posix.cs index 7e97b1e..ef6faf0 100644 --- a/src/Reloaded.Memory/Native/Unix/Posix.cs +++ b/src/Reloaded.Memory/Native/Unix/Posix.cs @@ -135,11 +135,11 @@ public struct IoVec /// but with an API similar to . /// /// Id of the process to read from. - /// Local memory address. /// Remote memory address. + /// Local memory address. /// Memory size. /// True on success, else false. - public static unsafe bool process_vm_readv_k32(nint processId, nuint localIov, nuint remoteIov, nuint numBytes) + public static unsafe bool process_vm_readv_k32(nint processId, nuint remoteIov, nuint localIov, nuint numBytes) { IoVec local = new() { iov_base = localIov, iov_len = numBytes }; IoVec remote = new() { iov_base = remoteIov, iov_len = numBytes };