From 246ad6d2885bbca3c0e9bb8b0115cc853d47a070 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Fri, 2 Feb 2024 15:34:21 +0800 Subject: [PATCH] Sound (Windows): tidy --- src/detection/sound/sound_windows.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detection/sound/sound_windows.cpp b/src/detection/sound/sound_windows.cpp index 6990615ab..55e6e99b1 100644 --- a/src/detection/sound/sound_windows.cpp +++ b/src/detection/sound/sound_windows.cpp @@ -17,8 +17,8 @@ const char* ffDetectSound(FFlist* devices /* List of FFSoundDevice */) IMMDeviceEnumerator* FF_AUTO_RELEASE_COM_OBJECT pEnum = NULL; - if (FAILED(CoCreateInstance(__uuidof(MMDeviceEnumerator), NULL, CLSCTX_ALL, __uuidof(IMMDeviceEnumerator), (void **)&pEnum))) - return "CoCreateInstance(__uuidof(MMDeviceEnumerator)) failed"; + if (FAILED(CoCreateInstance(CLSID_MMDeviceEnumerator, NULL, CLSCTX_ALL, IID_IMMDeviceEnumerator, (void **)&pEnum))) + return "CoCreateInstance(CLSID_MMDeviceEnumerator) failed"; LPWSTR mainDeviceId = NULL;