Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
686ea70c
Commit
686ea70c
authored
Jul 10, 2008
by
Aric Stewart
Committed by
Alexandre Julliard
Jul 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coreaudio: Make sure Port_SendToMessageThread is not NULL before calling CFMessagePortSendRequest.
Prevents crashing when closing audio device during playback.
parent
031ee3e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
audio.c
dlls/winecoreaudio.drv/audio.c
+9
-0
No files found.
dlls/winecoreaudio.drv/audio.c
View file @
686ea70c
...
...
@@ -349,6 +349,9 @@ static void wodSendNotifyCompletionsMessage(WINE_WAVEOUT* wwo)
CFDataRef
data
;
UInt32
buffer
;
if
(
!
Port_SendToMessageThread
)
return
;
buffer
=
(
UInt32
)
wwo
->
woID
;
data
=
CFDataCreate
(
kCFAllocatorDefault
,
(
UInt8
*
)
&
buffer
,
sizeof
(
buffer
));
...
...
@@ -368,6 +371,9 @@ static void wodSendNotifyInputCompletionsMessage(WINE_WAVEIN* wwi)
CFDataRef
data
;
UInt32
buffer
;
if
(
!
Port_SendToMessageThread
)
return
;
buffer
=
(
UInt32
)
wwi
->
wiID
;
data
=
CFDataCreate
(
kCFAllocatorDefault
,
(
UInt8
*
)
&
buffer
,
sizeof
(
buffer
));
...
...
@@ -694,6 +700,9 @@ void CoreAudio_WaveRelease(void)
/* Stop CFRunLoop in messageThread */
TRACE
(
"()
\n
"
);
if
(
!
Port_SendToMessageThread
)
return
;
CFMessagePortSendRequest
(
Port_SendToMessageThread
,
kStopLoopMessage
,
NULL
,
0
.
0
,
0
.
0
,
NULL
,
NULL
);
CFRelease
(
Port_SendToMessageThread
);
Port_SendToMessageThread
=
NULL
;
...
...
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