From 8e90c68d569ce8fe5fb990e76e63bdb3151f08f5 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Mon, 10 Mar 2003 19:03:08 +0000 Subject: [PATCH] Fixed error code when no mapping is found for wave input. --- dlls/winmm/wavemap/wavemap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winmm/wavemap/wavemap.c b/dlls/winmm/wavemap/wavemap.c index 92db66ad56e..20a51f0bdcf 100644 --- a/dlls/winmm/wavemap/wavemap.c +++ b/dlls/winmm/wavemap/wavemap.c @@ -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;