summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/hle_ipc.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-03-06 00:51:16 +0100
committerLioncash <mathew1800@gmail.com>2019-03-06 02:10:07 +0100
commit221613d4ead717dc788d0f391c22c31db5fe2530 (patch)
tree5a6c05e74ebfc0ff8b371904a9d1741b172d63b7 /src/core/hle/kernel/hle_ipc.cpp
parentkernel/client_session: Make data members private (diff)
downloadyuzu-221613d4ead717dc788d0f391c22c31db5fe2530.tar
yuzu-221613d4ead717dc788d0f391c22c31db5fe2530.tar.gz
yuzu-221613d4ead717dc788d0f391c22c31db5fe2530.tar.bz2
yuzu-221613d4ead717dc788d0f391c22c31db5fe2530.tar.lz
yuzu-221613d4ead717dc788d0f391c22c31db5fe2530.tar.xz
yuzu-221613d4ead717dc788d0f391c22c31db5fe2530.tar.zst
yuzu-221613d4ead717dc788d0f391c22c31db5fe2530.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/hle_ipc.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/kernel/hle_ipc.cpp b/src/core/hle/kernel/hle_ipc.cpp
index 5dd855db8..cbffff017 100644
--- a/src/core/hle/kernel/hle_ipc.cpp
+++ b/src/core/hle/kernel/hle_ipc.cpp
@@ -264,11 +264,11 @@ ResultCode HLERequestContext::WriteToOutgoingCommandBuffer(Thread& thread) {
// Write the domain objects to the command buffer, these go after the raw untranslated data.
// TODO(Subv): This completely ignores C buffers.
std::size_t domain_offset = size - domain_message_header->num_objects;
- auto& request_handlers = server_session->domain_request_handlers;
- for (auto& object : domain_objects) {
- request_handlers.emplace_back(object);
- dst_cmdbuf[domain_offset++] = static_cast<u32_le>(request_handlers.size());
+ for (const auto& object : domain_objects) {
+ server_session->AppendDomainRequestHandler(object);
+ dst_cmdbuf[domain_offset++] =
+ static_cast<u32_le>(server_session->NumDomainRequestHandlers());
}
}