[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.
This commit is contained in:
Oleg Dubinskiy 2025-04-06 17:15:14 +02:00
parent ecf4001e6f
commit ff7bf747bf

View file

@ -349,7 +349,7 @@ WdmAudInitUserModeMixer()
DeviceHandle = SetupDiGetClassDevs(&CategoryGuid,
NULL,
NULL,
DIGCF_DEVICEINTERFACE/* FIXME |DIGCF_PRESENT*/);
DIGCF_DEVICEINTERFACE | DIGCF_PRESENT);
if (DeviceHandle == INVALID_HANDLE_VALUE)
{