Test bits with '&' instead of '&&'.
This commit is contained in:
parent
67fab90d5b
commit
1160c58c62
|
@ -171,7 +171,7 @@ MMRESULT WINAPI acmDriverEnum(ACMDRIVERENUMCB fnCallback, DWORD dwInstance, DWOR
|
|||
|
||||
if (!fnCallback) return MMSYSERR_INVALPARAM;
|
||||
|
||||
if (fdwEnum && ~(ACM_DRIVERENUMF_NOLOCAL|ACM_DRIVERENUMF_DISABLED))
|
||||
if (fdwEnum & ~(ACM_DRIVERENUMF_NOLOCAL|ACM_DRIVERENUMF_DISABLED))
|
||||
return MMSYSERR_INVALFLAG;
|
||||
|
||||
for (padid = MSACM_pFirstACMDriverID; padid; padid = padid->pNextACMDriverID) {
|
||||
|
|
Loading…
Reference in New Issue