From 70aae4e27ab8df641a4420722af7bef331772e1a Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Tue, 9 Feb 2021 17:44:12 -0800 Subject: [PATCH] htc: fix driver manager c/p error --- .../source/htclow/driver/htclow_driver_manager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/libstratosphere/source/htclow/driver/htclow_driver_manager.cpp b/libraries/libstratosphere/source/htclow/driver/htclow_driver_manager.cpp index e08f2529d..8f951c9db 100644 --- a/libraries/libstratosphere/source/htclow/driver/htclow_driver_manager.cpp +++ b/libraries/libstratosphere/source/htclow/driver/htclow_driver_manager.cpp @@ -57,6 +57,8 @@ namespace ams::htclow::driver { impl::DriverType DriverManager::GetDriverType() { /* Lock ourselves. */ + std::scoped_lock lk(m_mutex); + return m_driver_type.value_or(impl::DriverType::Unknown); }