Make Wine/OSS use strerror
Mike Hearn
mike at theoretic.com
Fri Aug 29 06:43:30 CDT 2003
This is forwarded from Drew Ogle <og1 at umbc.edu>, as he didn't want to
subscribe to wine-patches.
ChangeLog:
This fixes the error message in Wave(In|Out)Init, it used to give a
confusing message, this uses strerror.
Index: dlls/winmm/wineoss/audio.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/wineoss/audio.c,v
retrieving revision 1.91
diff -u -r1.91 audio.c
--- dlls/winmm/wineoss/audio.c 28 Jul 2003 19:02:29 -0000 1.91
+++ dlls/winmm/wineoss/audio.c 28 Aug 2003 22:17:11 -0000
@@ -524,7 +524,7 @@
return FALSE;
}
} else {
- ERR("%s: not found!\n", ossdev->mixer_name);
+ ERR("%s: %s\n", ossdev->mixer_name , strerror( errno ));
OSS_CloseDevice(ossdev);
return FALSE;
}
@@ -660,7 +660,7 @@
return FALSE;
}
} else {
- ERR("%s: not found!\n", ossdev->mixer_name);
+ ERR("%s: %s\n", ossdev->mixer_name, strerror(errno));
OSS_CloseDevice(ossdev);
return FALSE;
}
More information about the wine-patches
mailing list