mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-24 04:16:24 -05:00
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.
This commit is contained in:
parent
cd4fca8447
commit
af2698dcea
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
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 {
|
size_t HLERequestContext::GetReadBufferSize(int buffer_index) const {
|
||||||
|
|
Loading…
Reference in a new issue