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 | |
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 'src')
-rw-r--r-- | src/core/hle/kernel/hle_ipc.cpp | 2 | ||||
-rw-r--r-- | src/core/hle/kernel/hle_ipc.h | 2 |
2 files changed, 2 insertions, 2 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); diff --git a/src/core/hle/kernel/hle_ipc.h b/src/core/hle/kernel/hle_ipc.h index 5b1eae74a..81e3489c8 100644 --- a/src/core/hle/kernel/hle_ipc.h +++ b/src/core/hle/kernel/hle_ipc.h @@ -147,7 +147,7 @@ public: std::vector<u8> ReadBuffer() const; /// Helper function to write a buffer using the appropriate buffer descriptor - size_t WriteBuffer(const void* buffer, const size_t size) const; + size_t WriteBuffer(const void* buffer, size_t size) const; /// Helper function to write a buffer using the appropriate buffer descriptor size_t WriteBuffer(const std::vector<u8>& buffer) const; |