From e1abb394b9a30a16f0fb97a8a7f9880942cfed65 Mon Sep 17 00:00:00 2001 From: lx-s Date: Fri, 23 Jan 2026 10:21:37 +0100 Subject: [PATCH] Updated platform toolset --- WinMute/Utility.h | 10 +++++++--- WinMute/WinMute.vcxproj | 8 ++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/WinMute/Utility.h b/WinMute/Utility.h index e298ef3..3fad5a4 100644 --- a/WinMute/Utility.h +++ b/WinMute/Utility.h @@ -35,7 +35,10 @@ POSSIBILITY OF SUCH DAMAGE. #include #include + +#include #include +#include // ============================================================================= // Utility @@ -48,14 +51,15 @@ std::string ConvertWideStringToString(const std::wstring &wideString); bool LaunchBrowser(HWND hParent, const std::wstring &url); -std::optional GetAudioDeviceName(const CComPtr& devicePtr); +std::optional GetAudioDeviceName(const CComPtr &devicePtr); // ============================================================================= // COM Helper -template +template inline void SafeRelease(Interface **ppInterfaceToRelease) { - if (*ppInterfaceToRelease) { + if (*ppInterfaceToRelease) + { (*ppInterfaceToRelease)->Release(); (*ppInterfaceToRelease) = nullptr; } diff --git a/WinMute/WinMute.vcxproj b/WinMute/WinMute.vcxproj index e72e5ce..af00a68 100644 --- a/WinMute/WinMute.vcxproj +++ b/WinMute/WinMute.vcxproj @@ -30,14 +30,14 @@ Application true - v143 + v145 Unicode Spectre Application false - v143 + v145 true Unicode Spectre @@ -45,14 +45,14 @@ Application true - v143 + v145 Unicode Spectre Application false - v143 + v145 true Unicode Spectre -- 2.43.0