diff --git a/dlls/winmm/winealsa/audio.c b/dlls/winmm/winealsa/audio.c index a016a8e19a39dff32c63a3e6b71ea17a225dc6ae..194fdfc8d21cdaf8d9f2a7407e2c18f383e21726 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");