wavemap: error return patch
Robert Reif
reif at earthlink.net
Sun Dec 19 23:15:38 CST 2004
Return actual result on error.
-------------- next part --------------
Index: dlls/winmm/wavemap/wavemap.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/wavemap/wavemap.c,v
retrieving revision 1.38
diff -u -r1.38 wavemap.c
--- dlls/winmm/wavemap/wavemap.c 6 Dec 2004 20:55:25 -0000 1.38
+++ dlls/winmm/wavemap/wavemap.c 20 Dec 2004 06:04:13 -0000
@@ -270,8 +270,8 @@
WARN("ret = WAVERR_BADFORMAT\n");
return WAVERR_BADFORMAT;
}
- WARN("ret = MMSYSERR_ERROR\n");
- return MMSYSERR_ERROR;
+ WARN("ret = 0x%08lx\n", res);
+ return res;
}
static DWORD wodClose(WAVEMAPDATA* wom)
@@ -781,8 +781,8 @@
WARN("ret = WAVERR_BADFORMAT\n");
return WAVERR_BADFORMAT;
}
- WARN("ret = MMSYSERR_ERROR\n");
- return MMSYSERR_ERROR;
+ WARN("ret = 0x%08lx\n", res);
+ return res;
}
static DWORD widClose(WAVEMAPDATA* wim)
More information about the wine-patches
mailing list