diff options
author | bunnei <bunneidev@gmail.com> | 2018-02-14 20:21:10 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-02-14 20:21:10 +0100 |
commit | 88bfec37ce445db30fe36bb2d00b115df6a24838 (patch) | |
tree | ce8c8bb49430a70e6e779be025c04951edf6ffe9 /src/core/hle/kernel/hle_ipc.cpp | |
parent | hle_ipc: Add GetReadBufferSize and check write buffer size. (diff) | |
download | yuzu-88bfec37ce445db30fe36bb2d00b115df6a24838.tar yuzu-88bfec37ce445db30fe36bb2d00b115df6a24838.tar.gz yuzu-88bfec37ce445db30fe36bb2d00b115df6a24838.tar.bz2 yuzu-88bfec37ce445db30fe36bb2d00b115df6a24838.tar.lz yuzu-88bfec37ce445db30fe36bb2d00b115df6a24838.tar.xz yuzu-88bfec37ce445db30fe36bb2d00b115df6a24838.tar.zst yuzu-88bfec37ce445db30fe36bb2d00b115df6a24838.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/hle_ipc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/hle_ipc.cpp b/src/core/hle/kernel/hle_ipc.cpp index d592f502d..6d16f71a7 100644 --- a/src/core/hle/kernel/hle_ipc.cpp +++ b/src/core/hle/kernel/hle_ipc.cpp @@ -226,7 +226,7 @@ std::vector<u8> HLERequestContext::ReadBuffer() const { return buffer; } -size_t HLERequestContext::WriteBuffer(const void* buffer, const size_t size) const { +size_t HLERequestContext::WriteBuffer(const void* buffer, size_t size) const { const bool is_buffer_b{BufferDescriptorB().size() && BufferDescriptorB()[0].Size()}; ASSERT_MSG(size <= GetWriteBufferSize(), "Size %d is too big", size); |