Make Wine/OSS use strerror

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is forwarded from Drew Ogle <og1@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;
         }



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux