wave mapper fix

Eric Pouech eric.pouech at wanadoo.fr
Sat Mar 8 14:20:33 CST 2003


this patch lets the new wave in test correctly pass now
A+
-- 
Eric Pouech
-------------- next part --------------
Name:          wavemap_win
ChangeLog:     fixed error code when no mapping is found for wave input
License:       X11
GenDate:       2003/03/08 20:19:10 UTC
ModifiedFiles: dlls/winmm/wavemap/wavemap.c
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/dlls/winmm/wavemap/wavemap.c,v
retrieving revision 1.29
diff -u -u -r1.29 wavemap.c
--- dlls/winmm/wavemap/wavemap.c	15 Feb 2003 00:00:12 -0000	1.29
+++ dlls/winmm/wavemap/wavemap.c	8 Mar 2003 20:17:27 -0000
@@ -145,7 +145,7 @@
     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 @@
     }
 
     HeapFree(GetProcessHeap(), 0, wim);
-    return MMSYSERR_ALLOCATED;
+    return WAVERR_BADFORMAT;
 found:
     if (dwFlags & WAVE_FORMAT_QUERY) {
 	*lpdwUser = 0L;


More information about the wine-patches mailing list