summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-05-18 13:14:28 -0400
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-05-18 13:14:28 -0400
commit7f78b17e204e961a9ba86f2fe99455e653ef12cc (patch)
treefe33aa27e1a2893661ee3b8e1435e1486081cdb0 /src
parent93bc59b62d8fa4f19bc26a10242fba48d93ceb04 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/k_transfer_memory.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_transfer_memory.h b/src/core/hle/kernel/k_transfer_memory.h
index 838fd2b18..c2d0f1eaf 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: