winapi_check: wineaudioio fixes

Francois Gouget fgouget at free.fr
Thu Oct 21 09:36:38 CDT 2004


winapi_check complains that HAVE_LIBAUDIOIO_MIDI is not defiend in 
config.h. That's correct but in fact wineaudioio has no Midi support and 
no code to support it so the best solution is to just remove the four 
incriminating lines of code.


Changelog:

  * dlls/winmm/wineaudioio/audioio.c

    Remove HAVE_LIBAUDIOIO_MIDI and LIBAUDIOIO_MidiInit().

-- 
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
                Dieu dit: "M-x Lumi\xE8re". Et la lumi\xE8re fut.
-------------- next part --------------
Index: dlls/winmm/wineaudioio/audioio.c
===================================================================
RCS file: /var/cvs/wine/dlls/winmm/wineaudioio/audioio.c,v
retrieving revision 1.2
diff -u -r1.2 audioio.c
--- dlls/winmm/wineaudioio/audioio.c	5 Sep 2003 23:08:27 -0000	1.2
+++ dlls/winmm/wineaudioio/audioio.c	19 Oct 2004 18:03:43 -0000
@@ -35,7 +35,6 @@
 static	struct WINE_LIBAUDIOIO* audioio = NULL;
 
 extern LONG LIBAUDIOIO_WaveInit(void);
-extern BOOL LIBAUDIOIO_MidiInit(void);
 
 /**************************************************************************
  * 				LIBAUDIOIO_drvOpen			[internal]
@@ -77,9 +76,6 @@
     switch(wMsg) {
 #ifdef HAVE_LIBAUDIOIO
     case DRV_LOAD:		LIBAUDIOIO_WaveInit();
-#ifdef HAVE_LIBAUDIOIO_MIDI
-    				LIBAUDIOIO_MidiInit();
-#endif
 				return 1;
     case DRV_FREE:		return 1;
     case DRV_OPEN:		return LIBAUDIOIO_drvOpen((LPSTR)dwParam1);


More information about the wine-patches mailing list