acmDriverEnumW shouldn't return MMSYSERR_ERROR if
acmDriverEnumCallback returns TRUE.
This commit is contained in:
parent
d2b850e8aa
commit
2fd8388c7b
|
@ -230,8 +230,9 @@ MMRESULT WINAPI acmFilterEnumW(HACMDRIVER had, PACMFILTERDETAILSW pafd,
|
|||
|
||||
if (acmDriverID(had, &hadid, 0) != MMSYSERR_NOERROR)
|
||||
return MMSYSERR_INVALHANDLE;
|
||||
return MSACM_FilterEnumHelper(MSACM_GetDriverID(hadid), had, pafd,
|
||||
fnCallback, dwInstance, fdwEnum);
|
||||
MSACM_FilterEnumHelper(MSACM_GetDriverID(hadid), had, pafd,
|
||||
fnCallback, dwInstance, fdwEnum);
|
||||
return MMSYSERR_NOERROR;
|
||||
}
|
||||
for (padid = MSACM_pFirstACMDriverID; padid; padid = padid->pNextACMDriverID) {
|
||||
/* should check for codec only */
|
||||
|
|
|
@ -498,8 +498,9 @@ MMRESULT WINAPI acmFormatEnumW(HACMDRIVER had, PACMFORMATDETAILSW pafd,
|
|||
|
||||
if (acmDriverID(had, &hadid, 0) != MMSYSERR_NOERROR)
|
||||
return MMSYSERR_INVALHANDLE;
|
||||
return MSACM_FormatEnumHelper(MSACM_GetDriverID(hadid), had, pafd, &wfxRef,
|
||||
fnCallback, dwInstance, fdwEnum);
|
||||
MSACM_FormatEnumHelper(MSACM_GetDriverID(hadid), had, pafd, &wfxRef,
|
||||
fnCallback, dwInstance, fdwEnum);
|
||||
return MMSYSERR_NOERROR;
|
||||
}
|
||||
for (padid = MSACM_pFirstACMDriverID; padid; padid = padid->pNextACMDriverID) {
|
||||
/* should check for codec only */
|
||||
|
|
Loading…
Reference in New Issue