From 5202364a5b0549a9b7524bf0fbbc90cff9be165a Mon Sep 17 00:00:00 2001 From: Daniel Marmier <d.marmier@bluewin.ch> Date: Tue, 14 Oct 2003 01:17:16 +0000 Subject: [PATCH] ALSA_WaveInit: repaired device name. --- dlls/winmm/winealsa/audio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/winmm/winealsa/audio.c b/dlls/winmm/winealsa/audio.c index a016a8e19a3..194fdfc8d21 100644 --- a/dlls/winmm/winealsa/audio.c +++ b/dlls/winmm/winealsa/audio.c @@ -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 @@ LONG ALSA_WaveInit(void) 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"); -- GitLab