[repaired] dlls/winmm/winealsa/audio.c

Daniel Marmier d.marmier at bluewin.ch
Sun Oct 12 12:40:06 CDT 2003


ALSA_WaveInit: repaired device name.

-------------- next part --------------
Index: dlls/winmm/winealsa/audio.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/winealsa/audio.c,v
retrieving revision 1.21
diff -u -r1.21 audio.c
--- dlls/winmm/winealsa/audio.c	7 Oct 2003 22:54:17 -0000	1.21
+++ dlls/winmm/winealsa/audio.c	12 Oct 2003 17:22:18 -0000
@@ -55,6 +55,8 @@
 WINE_DEFAULT_DEBUG_CHANNEL(wave);
 
 
+#define FAKE_CHARPTR(s)	((char *)(unsigned long)(s))
+
 #if defined(HAVE_ALSA) && ((SND_LIB_MAJOR == 0 && SND_LIB_MINOR >= 9) || SND_LIB_MAJOR >= 1)
 
 /* internal ALSALIB functions */
@@ -408,12 +410,11 @@
     snd_pcm_info_t *            info;
     snd_pcm_hw_params_t *       hw_params;
     WINE_WAVEOUT*	        wwo;
-    char			device[] = "hw";
 
     wwo = &WOutDev[0];
 
     /* FIXME: use better values */
-    wwo->device = device;
+    wwo->device = FAKE_CHARPTR("hw");
     wwo->caps.wMid = 0x0002;
     wwo->caps.wPid = 0x0104;
     strcpy(wwo->caps.szPname, "SB16 Wave Out");


More information about the wine-patches mailing list