diff options
author | Lioncash <mathew1800@gmail.com> | 2018-07-19 11:07:04 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-07-19 11:10:16 -0400 |
commit | af2698dcea69410a319a3381f93ec49515556dbb (patch) | |
tree | 23d53de99c04e12efd6bdf1a66829cc2b2897365 /src | |
parent | cd4fca8447b56af3747b2033c315e986cfe32826 (diff) |
hle_ipc: Amend usage of buffer_index within one of HLERequestContext's WriteBuffer() overloads
Previously, the buffer_index parameter was unused, causing all writes to
use the buffer index of zero, which is not necessarily what is wanted
all the time.
Thankfully, all current usages don't use a buffer index other than zero,
so this just prevents a bug before it has a chance to spring.
Diffstat (limited to 'src')
-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 b89c8c33d..911e6fbc1 100644 --- a/src/core/hle/kernel/hle_ipc.cpp +++ b/src/core/hle/kernel/hle_ipc.cpp @@ -302,7 +302,7 @@ size_t HLERequestContext::WriteBuffer(const void* buffer, size_t size, int buffe } size_t HLERequestContext::WriteBuffer(const std::vector<u8>& buffer, int buffer_index) const { - return WriteBuffer(buffer.data(), buffer.size()); + return WriteBuffer(buffer.data(), buffer.size(), buffer_index); } size_t HLERequestContext::GetReadBufferSize(int buffer_index) const { |