msacm32: If a driver load fails and it does not give us another error set the error to MMSYSERR_NODRIVER.

This commit is contained in:
Aric Stewart 2009-08-21 09:38:53 -05:00 committed by Alexandre Julliard
parent da8acbc47d
commit 6215742c6e
1 changed files with 4 additions and 0 deletions

View File

@ -555,6 +555,8 @@ MMRESULT WINAPI acmDriverOpen(PHACMDRIVER phad, HACMDRIVERID hadid, DWORD fdwOpe
if (!pad->hDrvr)
{
ret = adod.dwError;
if (ret == MMSYSERR_NOERROR)
ret = MMSYSERR_NODRIVER;
goto gotError;
}
}
@ -578,6 +580,8 @@ MMRESULT WINAPI acmDriverOpen(PHACMDRIVER phad, HACMDRIVERID hadid, DWORD fdwOpe
if (!pad->pLocalDrvrInst)
{
ret = adod.dwError;
if (ret == MMSYSERR_NOERROR)
ret = MMSYSERR_NODRIVER;
goto gotError;
}
}