Skip to content
Snippets Groups Projects
Commit 9d2e0985 authored by Robert Reif's avatar Robert Reif Committed by Alexandre Julliard
Browse files

Free should not happen when still playing.

parent a3c45689
No related branches found
No related tags found
No related merge requests found
......@@ -2357,7 +2357,8 @@ UINT WINAPI waveOutClose(HWAVEOUT hWaveOut)
return MMSYSERR_INVALHANDLE;
dwRet = MMDRV_Close(wmld, WODM_CLOSE);
MMDRV_Free(hWaveOut, wmld);
if (dwRet != WAVERR_STILLPLAYING)
MMDRV_Free(hWaveOut, wmld);
return dwRet;
}
......@@ -2706,7 +2707,8 @@ UINT WINAPI waveInClose(HWAVEIN hWaveIn)
return MMSYSERR_INVALHANDLE;
dwRet = MMDRV_Message(wmld, WIDM_CLOSE, 0L, 0L, TRUE);
MMDRV_Free(hWaveIn, wmld);
if (dwRet != WAVERR_STILLPLAYING)
MMDRV_Free(hWaveIn, wmld);
return dwRet;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment