Skip to content

Commit ff7bf74

Browse files
[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.
1 parent ecf4001 commit ff7bf74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dll/win32/wdmaud.drv/mmixer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ WdmAudInitUserModeMixer()
349349
DeviceHandle = SetupDiGetClassDevs(&CategoryGuid,
350350
NULL,
351351
NULL,
352-
DIGCF_DEVICEINTERFACE/* FIXME |DIGCF_PRESENT*/);
352+
DIGCF_DEVICEINTERFACE | DIGCF_PRESENT);
353353

354354
if (DeviceHandle == INVALID_HANDLE_VALUE)
355355
{

0 commit comments

Comments
 (0)