diff options
| author | 2018-02-14 14:21:10 -0500 | |
|---|---|---|
| committer | 2018-02-14 14:21:10 -0500 | |
| commit | 88bfec37ce445db30fe36bb2d00b115df6a24838 (patch) | |
| tree | ce8c8bb49430a70e6e779be025c04951edf6ffe9 /src | |
| parent | hle_ipc: Add GetReadBufferSize and check write buffer size. (diff) | |
| download | yuzu-88bfec37ce445db30fe36bb2d00b115df6a24838.tar.gz yuzu-88bfec37ce445db30fe36bb2d00b115df6a24838.tar.xz yuzu-88bfec37ce445db30fe36bb2d00b115df6a24838.zip | |
hle_ipc: Remove const from WriteBuffer size.
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 { | |||
| 226 | return buffer; | 226 | return buffer; |
| 227 | } | 227 | } |
| 228 | 228 | ||
| 229 | size_t HLERequestContext::WriteBuffer(const void* buffer, const size_t size) const { | 229 | size_t HLERequestContext::WriteBuffer(const void* buffer, size_t size) const { |
| 230 | const bool is_buffer_b{BufferDescriptorB().size() && BufferDescriptorB()[0].Size()}; | 230 | const bool is_buffer_b{BufferDescriptorB().size() && BufferDescriptorB()[0].Size()}; |
| 231 | 231 | ||
| 232 | ASSERT_MSG(size <= GetWriteBufferSize(), "Size %d is too big", size); | 232 | 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: | |||
| 147 | std::vector<u8> ReadBuffer() const; | 147 | std::vector<u8> ReadBuffer() const; |
| 148 | 148 | ||
| 149 | /// Helper function to write a buffer using the appropriate buffer descriptor | 149 | /// Helper function to write a buffer using the appropriate buffer descriptor |
| 150 | size_t WriteBuffer(const void* buffer, const size_t size) const; | 150 | size_t WriteBuffer(const void* buffer, size_t size) const; |
| 151 | 151 | ||
| 152 | /// Helper function to write a buffer using the appropriate buffer descriptor | 152 | /// Helper function to write a buffer using the appropriate buffer descriptor |
| 153 | size_t WriteBuffer(const std::vector<u8>& buffer) const; | 153 | size_t WriteBuffer(const std::vector<u8>& buffer) const; |