mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 17:00:51 +08:00
[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:
@@ -349,7 +349,7 @@ WdmAudInitUserModeMixer()
|
||||
DeviceHandle = SetupDiGetClassDevs(&CategoryGuid,
|
||||
NULL,
|
||||
NULL,
|
||||
DIGCF_DEVICEINTERFACE/* FIXME |DIGCF_PRESENT*/);
|
||||
DIGCF_DEVICEINTERFACE | DIGCF_PRESENT);
|
||||
|
||||
if (DeviceHandle == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user