From 7f78b17e204e961a9ba86f2fe99455e653ef12cc Mon Sep 17 00:00:00 2001 From: Morph <39850852+Morph1984@users.noreply.github.com> Date: Tue, 18 May 2021 13:14:28 -0400 Subject: [PATCH] KTransferMemory: Return size instead of size * PageSize in GetSize() size is already the size in bytes. We do not need to multiply it by the page size --- src/core/hle/kernel/k_transfer_memory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hle/kernel/k_transfer_memory.h b/src/core/hle/kernel/k_transfer_memory.h index 838fd2b18c..c2d0f1eafb 100644 --- a/src/core/hle/kernel/k_transfer_memory.h +++ b/src/core/hle/kernel/k_transfer_memory.h @@ -52,7 +52,7 @@ public: } size_t GetSize() const { - return is_initialized ? size * PageSize : 0; + return is_initialized ? size : 0; } private: