Commit 50149af8 authored by Alexandre Julliard's avatar Alexandre Julliard

Make sure that snd_pcm_open returned a valid handle before using it.

parent 79916df9
......@@ -432,6 +432,7 @@ LONG ALSA_WaveInit(void)
ALSA_WodNumDevs = 0;
EXIT_ON_ERROR( snd_pcm_open(&h, wwo->device, SND_PCM_STREAM_PLAYBACK, SND_PCM_NONBLOCK) , "open pcm" );
if (!h) return -1;
ALSA_WodNumDevs++;
EXIT_ON_ERROR( snd_pcm_info(h, info) , "pcm info" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment