diff --git a/libraries/libmesosphere/source/kern_k_light_condition_variable.cpp b/libraries/libmesosphere/source/kern_k_light_condition_variable.cpp index bf8cc8a2e..25b2b0b9e 100644 --- a/libraries/libmesosphere/source/kern_k_light_condition_variable.cpp +++ b/libraries/libmesosphere/source/kern_k_light_condition_variable.cpp @@ -51,7 +51,7 @@ namespace ams::kern { /* Sleep the thread. */ { - KScopedSchedulerLockAndSleep lk(&timer, owner, timeout); + KScopedSchedulerLockAndSleep lk(std::addressof(timer), owner, timeout); if (!allow_terminating_thread && owner->IsTerminationRequested()) { lk.CancelSleep();