]> repos.lx-s.de Git - winmute.git/commitdiff
Updated platform toolset
authorlx-s <lx-s@users.noreply.github.com>
Fri, 23 Jan 2026 09:21:37 +0000 (10:21 +0100)
committerlx-s <lx-s@users.noreply.github.com>
Fri, 23 Jan 2026 09:21:37 +0000 (10:21 +0100)
WinMute/Utility.h
WinMute/WinMute.vcxproj

index e298ef3c5af64eb9d9722ccc325c1dd5b52c6142..3fad5a40eb4414ce7661ebf32f21ef20ac7d566a 100644 (file)
@@ -35,7 +35,10 @@ POSSIBILITY OF SUCH DAMAGE.
 
 #include <string>
 #include <optional>
+
+#include <atlbase.h>
 #include <windows.h>
+#include <mmdeviceapi.h>
 
 // =============================================================================
 // Utility
@@ -48,14 +51,15 @@ std::string ConvertWideStringToString(const std::wstring &wideString);
 
 bool LaunchBrowser(HWND hParent, const std::wstring &url);
 
-std::optional<std::wstring> GetAudioDeviceName(const CComPtr<IMMDevice>& devicePtr);
+std::optional<std::wstring> GetAudioDeviceName(const CComPtr<IMMDevice> &devicePtr);
 
 // =============================================================================
 // COM Helper
-template<class Interface>
+template <class Interface>
 inline void SafeRelease(Interface **ppInterfaceToRelease)
 {
-   if (*ppInterfaceToRelease) {
+   if (*ppInterfaceToRelease)
+   {
       (*ppInterfaceToRelease)->Release();
       (*ppInterfaceToRelease) = nullptr;
    }
index e72e5ce3c5df840d1df4dccf8f2422e4640692c6..af00a68d86bbb0a75354e11b07eddb065a6527f6 100644 (file)
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
     <ConfigurationType>Application</ConfigurationType>
     <UseDebugLibraries>true</UseDebugLibraries>
-    <PlatformToolset>v143</PlatformToolset>
+    <PlatformToolset>v145</PlatformToolset>
     <CharacterSet>Unicode</CharacterSet>
     <SpectreMitigation>Spectre</SpectreMitigation>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
     <ConfigurationType>Application</ConfigurationType>
     <UseDebugLibraries>false</UseDebugLibraries>
-    <PlatformToolset>v143</PlatformToolset>
+    <PlatformToolset>v145</PlatformToolset>
     <WholeProgramOptimization>true</WholeProgramOptimization>
     <CharacterSet>Unicode</CharacterSet>
     <SpectreMitigation>Spectre</SpectreMitigation>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
     <ConfigurationType>Application</ConfigurationType>
     <UseDebugLibraries>true</UseDebugLibraries>
-    <PlatformToolset>v143</PlatformToolset>
+    <PlatformToolset>v145</PlatformToolset>
     <CharacterSet>Unicode</CharacterSet>
     <SpectreMitigation>Spectre</SpectreMitigation>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
     <ConfigurationType>Application</ConfigurationType>
     <UseDebugLibraries>false</UseDebugLibraries>
-    <PlatformToolset>v143</PlatformToolset>
+    <PlatformToolset>v145</PlatformToolset>
     <WholeProgramOptimization>true</WholeProgramOptimization>
     <CharacterSet>Unicode</CharacterSet>
     <SpectreMitigation>Spectre</SpectreMitigation>