Make winearts fail to load!

Francois Gouget fgouget at codeweavers.com
Tue May 4 06:55:38 CDT 2004


If the aRts server is not running, ARTS_WaveInit() will fail and not 
initialize anything but we would load the winearts driver anyway. So now 
we forward the error upstream so winmm knows something is wrong.

Changelog:

  * dlls/winmm/winearts/arts.c

    Francois Gouget <fgouget at codeweavers.com>
    If ARTS_WaveInit() failed then transmit the failure upstream in 
ARTS_DriverProc().

-- 
Francois Gouget
fgouget at codeweavers.com

-------------- next part --------------
Index: dlls/winmm/winearts/arts.c
===================================================================
RCS file: /var/cvs/wine/dlls/winmm/winearts/arts.c,v
retrieving revision 1.4
diff -u -r1.4 arts.c
--- a/dlls/winmm/winearts/arts.c	5 Sep 2003 23:08:27 -0000	1.4
+++ b/dlls/winmm/winearts/arts.c	4 May 2004 11:13:56 -0000
@@ -73,9 +73,7 @@
 
     switch(wMsg) {
 #ifdef HAVE_ARTS
-    case DRV_LOAD:		ARTS_WaveInit();
-/*    				ARTS_MidiInit(); FIXME: no midi
-support in artsc so we don't have any in the arts driver */
+    case DRV_LOAD:		if (ARTS_WaveInit()<0) return 0;
 				return 1;
     case DRV_FREE:	        return ARTS_WaveClose();
     case DRV_OPEN:		return ARTS_drvOpen((LPSTR)dwParam1);


More information about the wine-patches mailing list