summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2021-04-19 18:36:08 +0200
committerLioncash <mathew1800@gmail.com>2021-04-19 18:36:10 +0200
commit9f39f7c0411887a243739ff5ec3eafd7d2860323 (patch)
tree4f19c85f5ba050b7bac3dbbd5390588449ecb009
parentarp: Prevent uninitialized read of launch member variable (diff)
downloadyuzu-9f39f7c0411887a243739ff5ec3eafd7d2860323.tar
yuzu-9f39f7c0411887a243739ff5ec3eafd7d2860323.tar.gz
yuzu-9f39f7c0411887a243739ff5ec3eafd7d2860323.tar.bz2
yuzu-9f39f7c0411887a243739ff5ec3eafd7d2860323.tar.lz
yuzu-9f39f7c0411887a243739ff5ec3eafd7d2860323.tar.xz
yuzu-9f39f7c0411887a243739ff5ec3eafd7d2860323.tar.zst
yuzu-9f39f7c0411887a243739ff5ec3eafd7d2860323.zip
-rw-r--r--src/core/hle/service/glue/arp.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/glue/arp.cpp b/src/core/hle/service/glue/arp.cpp
index e6d9d1b24..7b1c6677c 100644
--- a/src/core/hle/service/glue/arp.cpp
+++ b/src/core/hle/service/glue/arp.cpp
@@ -157,9 +157,9 @@ class IRegistrar final : public ServiceFramework<IRegistrar> {
friend class ARP_W;
public:
- explicit IRegistrar(
- Core::System& system_,
- std::function<ResultCode(u64, ApplicationLaunchProperty, std::vector<u8>)> issuer)
+ using IssuerFn = std::function<ResultCode(u64, ApplicationLaunchProperty, std::vector<u8>)>;
+
+ explicit IRegistrar(Core::System& system_, IssuerFn&& issuer)
: ServiceFramework{system_, "IRegistrar"}, issue_process_id{std::move(issuer)} {
// clang-format off
static const FunctionInfo functions[] = {
@@ -238,7 +238,7 @@ private:
rb.Push(RESULT_SUCCESS);
}
- std::function<ResultCode(u64, ApplicationLaunchProperty, std::vector<u8>)> issue_process_id;
+ IssuerFn issue_process_id;
bool issued = false;
ApplicationLaunchProperty launch{};
std::vector<u8> control;