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
04e3bda4
Commit
04e3bda4
authored
Mar 06, 2011
by
Jörg Höhle
Committed by
Alexandre Julliard
Mar 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa: Open must fail when recorder thread creation fails.
parent
56f2c580
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
wavein.c
dlls/winealsa.drv/wavein.c
+9
-2
No files found.
dlls/winealsa.drv/wavein.c
View file @
04e3bda4
...
...
@@ -511,8 +511,13 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
wwi
->
hStartUpEvent
=
CreateEventW
(
NULL
,
FALSE
,
FALSE
,
NULL
);
wwi
->
hThread
=
CreateThread
(
NULL
,
0
,
widRecorder
,
(
LPVOID
)(
DWORD_PTR
)
wDevID
,
0
,
&
(
wwi
->
dwThreadID
));
if
(
wwi
->
hThread
)
SetThreadPriority
(
wwi
->
hThread
,
THREAD_PRIORITY_TIME_CRITICAL
);
if
(
!
wwi
->
hThread
)
{
ERR
(
"Thread creation for the widRecorder failed!
\n
"
);
CloseHandle
(
wwi
->
hStartUpEvent
);
ret
=
MMSYSERR_NOMEM
;
goto
error
;
}
SetThreadPriority
(
wwi
->
hThread
,
THREAD_PRIORITY_TIME_CRITICAL
);
WaitForSingleObject
(
wwi
->
hStartUpEvent
,
INFINITE
);
CloseHandle
(
wwi
->
hStartUpEvent
);
wwi
->
hStartUpEvent
=
NULL
;
...
...
@@ -525,6 +530,8 @@ error:
snd_pcm_close
(
pcm
);
HeapFree
(
GetProcessHeap
(),
0
,
hw_params
);
HeapFree
(
GetProcessHeap
(),
0
,
sw_params
);
if
(
wwi
->
msgRing
.
ring_buffer_size
>
0
)
ALSA_DestroyRingMessage
(
&
wwi
->
msgRing
);
return
ret
;
}
...
...
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