diff options
author | bunnei <bunneidev@gmail.com> | 2019-03-07 21:31:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-07 21:31:26 +0100 |
commit | c63a0e88b76f55e4759f001b9e4d3713b69e44eb (patch) | |
tree | e5a4150afd3fc32b03d7c9b99d7a6d1bba9497d8 /src/core/hle/kernel/hle_ipc.cpp | |
parent | Merge pull request #2205 from FearlessTobi/docked-undocked-hotkey (diff) | |
parent | kernel/server_session: Make data members private (diff) | |
download | yuzu-c63a0e88b76f55e4759f001b9e4d3713b69e44eb.tar yuzu-c63a0e88b76f55e4759f001b9e4d3713b69e44eb.tar.gz yuzu-c63a0e88b76f55e4759f001b9e4d3713b69e44eb.tar.bz2 yuzu-c63a0e88b76f55e4759f001b9e4d3713b69e44eb.tar.lz yuzu-c63a0e88b76f55e4759f001b9e4d3713b69e44eb.tar.xz yuzu-c63a0e88b76f55e4759f001b9e4d3713b69e44eb.tar.zst yuzu-c63a0e88b76f55e4759f001b9e4d3713b69e44eb.zip |
Diffstat (limited to 'src/core/hle/kernel/hle_ipc.cpp')
-rw-r--r-- | src/core/hle/kernel/hle_ipc.cpp | 8 |
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()); } } |