Explorar o código

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
Morph %!s(int64=5) %!d(string=hai) anos
pai
achega
7f78b17e20
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/hle/kernel/k_transfer_memory.h

+ 1 - 1
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: