Commit 6215742c authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

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

msacm32: If a driver load fails and it does not give us another error set the error to MMSYSERR_NODRIVER.
parent da8acbc4
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment