Fixed error code when no mapping is found for wave input.

This commit is contained in:
Eric Pouech 2003-03-10 19:03:08 +00:00 committed by Alexandre Julliard
parent 84361d5a47
commit 8e90c68d56
1 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ static DWORD wodOpen(LPDWORD lpdwUser, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
UINT i;
WAVEMAPDATA* wom = HeapAlloc(GetProcessHeap(), 0, sizeof(WAVEMAPDATA));
TRACE("(%p %p %08lx\n", lpdwUser, lpDesc, dwFlags);
TRACE("(%p %p %08lx)\n", lpdwUser, lpDesc, dwFlags);
if (!wom)
return MMSYSERR_NOMEM;
@ -679,7 +679,7 @@ static DWORD widOpen(LPDWORD lpdwUser, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
}
HeapFree(GetProcessHeap(), 0, wim);
return MMSYSERR_ALLOCATED;
return WAVERR_BADFORMAT;
found:
if (dwFlags & WAVE_FORMAT_QUERY) {
*lpdwUser = 0L;