Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
50149af8
Commit
50149af8
authored
Apr 27, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure that snd_pcm_open returned a valid handle before using it.
parent
79916df9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
audio.c
dlls/winmm/winealsa/audio.c
+1
-0
No files found.
dlls/winmm/winealsa/audio.c
View file @
50149af8
...
@@ -432,6 +432,7 @@ LONG ALSA_WaveInit(void)
...
@@ -432,6 +432,7 @@ LONG ALSA_WaveInit(void)
ALSA_WodNumDevs
=
0
;
ALSA_WodNumDevs
=
0
;
EXIT_ON_ERROR
(
snd_pcm_open
(
&
h
,
wwo
->
device
,
SND_PCM_STREAM_PLAYBACK
,
SND_PCM_NONBLOCK
)
,
"open pcm"
);
EXIT_ON_ERROR
(
snd_pcm_open
(
&
h
,
wwo
->
device
,
SND_PCM_STREAM_PLAYBACK
,
SND_PCM_NONBLOCK
)
,
"open pcm"
);
if
(
!
h
)
return
-
1
;
ALSA_WodNumDevs
++
;
ALSA_WodNumDevs
++
;
EXIT_ON_ERROR
(
snd_pcm_info
(
h
,
info
)
,
"pcm info"
);
EXIT_ON_ERROR
(
snd_pcm_info
(
h
,
info
)
,
"pcm info"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment