diff options
author | Liam <byteslice@airmail.cc> | 2024-01-02 23:12:16 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-01-13 00:31:33 +0100 |
commit | f90a022d3a20c86399f49a8154847b73bc1b8fd3 (patch) | |
tree | 672214411189aaf408febc5aa9cc01e45aed5f5f /src/core/hle/service/glue/arp.cpp | |
parent | kernel: fix page leak on process termination (diff) | |
download | yuzu-f90a022d3a20c86399f49a8154847b73bc1b8fd3.tar yuzu-f90a022d3a20c86399f49a8154847b73bc1b8fd3.tar.gz yuzu-f90a022d3a20c86399f49a8154847b73bc1b8fd3.tar.bz2 yuzu-f90a022d3a20c86399f49a8154847b73bc1b8fd3.tar.lz yuzu-f90a022d3a20c86399f49a8154847b73bc1b8fd3.tar.xz yuzu-f90a022d3a20c86399f49a8154847b73bc1b8fd3.tar.zst yuzu-f90a022d3a20c86399f49a8154847b73bc1b8fd3.zip |
Diffstat (limited to 'src/core/hle/service/glue/arp.cpp')
-rw-r--r-- | src/core/hle/service/glue/arp.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/hle/service/glue/arp.cpp b/src/core/hle/service/glue/arp.cpp index 6f1151b03..1254b6d49 100644 --- a/src/core/hle/service/glue/arp.cpp +++ b/src/core/hle/service/glue/arp.cpp @@ -15,9 +15,10 @@ namespace Service::Glue { namespace { -std::optional<u64> GetTitleIDForProcessID(const Core::System& system, u64 process_id) { - const auto& list = system.Kernel().GetProcessList(); - const auto iter = std::find_if(list.begin(), list.end(), [&process_id](const auto& process) { +std::optional<u64> GetTitleIDForProcessID(Core::System& system, u64 process_id) { + auto list = system.Kernel().GetProcessList(); + + const auto iter = std::find_if(list.begin(), list.end(), [&process_id](auto& process) { return process->GetProcessId() == process_id; }); |