diff options
author | bunnei <bunneidev@gmail.com> | 2018-02-14 05:53:18 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-02-14 05:54:07 +0100 |
commit | fc1b425520d750335131f6ddc20f1d964ab384c5 (patch) | |
tree | c80753518104d7acda9ffb06b284820901b483a9 /src/core/hle | |
parent | hle_ipc: Add helper functions for reading and writing buffers. (diff) | |
download | yuzu-fc1b425520d750335131f6ddc20f1d964ab384c5.tar yuzu-fc1b425520d750335131f6ddc20f1d964ab384c5.tar.gz yuzu-fc1b425520d750335131f6ddc20f1d964ab384c5.tar.bz2 yuzu-fc1b425520d750335131f6ddc20f1d964ab384c5.tar.lz yuzu-fc1b425520d750335131f6ddc20f1d964ab384c5.tar.xz yuzu-fc1b425520d750335131f6ddc20f1d964ab384c5.tar.zst yuzu-fc1b425520d750335131f6ddc20f1d964ab384c5.zip |
Diffstat (limited to 'src/core/hle')
-rw-r--r-- | src/core/hle/kernel/hle_ipc.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/hle/kernel/hle_ipc.cpp b/src/core/hle/kernel/hle_ipc.cpp index a5a3d4fe4..0a9986c18 100644 --- a/src/core/hle/kernel/hle_ipc.cpp +++ b/src/core/hle/kernel/hle_ipc.cpp @@ -230,14 +230,12 @@ size_t HLERequestContext::WriteBuffer(const void* buffer, const size_t size) con const bool is_buffer_b{BufferDescriptorB().size() && BufferDescriptorB()[0].Size()}; if (is_buffer_b) { - const size_t size{std::min(BufferDescriptorB()[0].Size(), size)}; Memory::WriteBlock(BufferDescriptorB()[0].Address(), buffer, size); - return size; } else { - const size_t size{std::min(BufferDescriptorC()[0].Size(), size)}; Memory::WriteBlock(BufferDescriptorC()[0].Address(), buffer, size); - return size; } + + return size; } size_t HLERequestContext::WriteBuffer(const std::vector<u8>& buffer) const { |