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;