summaryrefslogtreecommitdiff
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorGravatar bunnei2022-02-21 12:31:23 -0800
committerGravatar bunnei2022-02-21 12:41:06 -0800
commit57ebcbf2c4574e5d04d5b91ea2918b0d030ac92b (patch)
tree849296d997bdd7768b21f60958fbdd466c232a42 /src/core/hle/service
parentcore: hle: kernel: KResourceLimit: Add a helper function for creating a KReso... (diff)
downloadyuzu-57ebcbf2c4574e5d04d5b91ea2918b0d030ac92b.tar.gz
yuzu-57ebcbf2c4574e5d04d5b91ea2918b0d030ac92b.tar.xz
yuzu-57ebcbf2c4574e5d04d5b91ea2918b0d030ac92b.zip
core: hle: kernel: KEvent: Pass in owner KProcess on event creation.
- This is necessary to ensure resource limits are freed from the right process.
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/kernel_helpers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/kernel_helpers.cpp b/src/core/hle/service/kernel_helpers.cpp
index 62f4cdfb2..d0c7bc0ce 100644
--- a/src/core/hle/service/kernel_helpers.cpp
+++ b/src/core/hle/service/kernel_helpers.cpp
@@ -43,7 +43,7 @@ Kernel::KEvent* ServiceContext::CreateEvent(std::string&& name) {
43 } 43 }
44 44
45 // Initialize the event. 45 // Initialize the event.
46 event->Initialize(std::move(name)); 46 event->Initialize(std::move(name), process);
47 47
48 // Commit the thread reservation. 48 // Commit the thread reservation.
49 event_reservation.Commit(); 49 event_reservation.Commit();