mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 01:25:56 +00: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:
parent
ecf4001e6f
commit
ff7bf747bf
1 changed files with 1 additions and 1 deletions
|
@ -349,7 +349,7 @@ WdmAudInitUserModeMixer()
|
||||||
DeviceHandle = SetupDiGetClassDevs(&CategoryGuid,
|
DeviceHandle = SetupDiGetClassDevs(&CategoryGuid,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
DIGCF_DEVICEINTERFACE/* FIXME |DIGCF_PRESENT*/);
|
DIGCF_DEVICEINTERFACE | DIGCF_PRESENT);
|
||||||
|
|
||||||
if (DeviceHandle == INVALID_HANDLE_VALUE)
|
if (DeviceHandle == INVALID_HANDLE_VALUE)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue