aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/mutex.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-04-29 21:16:09 -0400
committerLiam <byteslice@airmail.cc>2023-04-29 21:52:26 -0400
commit7afcc29ac85ded4975fd04d9f1c80b32b4e102ba (patch)
tree30ec292c07baeb9144677779a39681e8d62a0eed /src/core/hle/service/mutex.cpp
parent873aa03f51e82a2ab52d2e582332f9667836f23d (diff)
kernel: match calls to Register and Unregister
Diffstat (limited to 'src/core/hle/service/mutex.cpp')
-rw-r--r--src/core/hle/service/mutex.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/service/mutex.cpp b/src/core/hle/service/mutex.cpp
index 07589a0f0e..b0ff71d1ba 100644
--- a/src/core/hle/service/mutex.cpp
+++ b/src/core/hle/service/mutex.cpp
@@ -12,6 +12,9 @@ Mutex::Mutex(Core::System& system) : m_system(system) {
m_event = Kernel::KEvent::Create(system.Kernel());
m_event->Initialize(nullptr);
+ // Register the event.
+ Kernel::KEvent::Register(system.Kernel(), m_event);
+
ASSERT(R_SUCCEEDED(m_event->Signal()));
}