From ff7bf747bf3a852b8f61b40526ba6b9ae3c244f2 Mon Sep 17 00:00:00 2001 From: Oleg Dubinskiy Date: Sun, 6 Apr 2025 17:15:14 +0200 Subject: [PATCH] [WDMAUD.DRV] Allow enumerating only present audio devices - Avoid unnecessary enumerating audio-related device interfaces which are currently not present in the system. - Do this for MMixer routines, same as it's already done for Legacy ones. --- dll/win32/wdmaud.drv/mmixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dll/win32/wdmaud.drv/mmixer.c b/dll/win32/wdmaud.drv/mmixer.c index f4f0fbd09ef..47848b9616b 100644 --- a/dll/win32/wdmaud.drv/mmixer.c +++ b/dll/win32/wdmaud.drv/mmixer.c @@ -349,7 +349,7 @@ WdmAudInitUserModeMixer() DeviceHandle = SetupDiGetClassDevs(&CategoryGuid, NULL, NULL, - DIGCF_DEVICEINTERFACE/* FIXME |DIGCF_PRESENT*/); + DIGCF_DEVICEINTERFACE | DIGCF_PRESENT); if (DeviceHandle == INVALID_HANDLE_VALUE) {