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
836776ae
Commit
836776ae
authored
Apr 20, 2007
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Apr 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Make sure we're holding the lock on Drop And Stop.
parent
b4bb6e5b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
primary.c
dlls/dsound/primary.c
+5
-0
No files found.
dlls/dsound/primary.c
View file @
836776ae
...
@@ -213,6 +213,8 @@ HRESULT DSOUND_PrimaryDestroy(DirectSoundDevice *device)
...
@@ -213,6 +213,8 @@ HRESULT DSOUND_PrimaryDestroy(DirectSoundDevice *device)
{
{
TRACE
(
"(%p)
\n
"
,
device
);
TRACE
(
"(%p)
\n
"
,
device
);
EnterCriticalSection
(
&
(
device
->
mixlock
));
DSOUND_PrimaryClose
(
device
);
DSOUND_PrimaryClose
(
device
);
if
(
device
->
driver
)
{
if
(
device
->
driver
)
{
if
(
device
->
hwbuf
)
{
if
(
device
->
hwbuf
)
{
...
@@ -227,6 +229,7 @@ HRESULT DSOUND_PrimaryDestroy(DirectSoundDevice *device)
...
@@ -227,6 +229,7 @@ HRESULT DSOUND_PrimaryDestroy(DirectSoundDevice *device)
}
}
HeapFree
(
GetProcessHeap
(),
0
,
device
->
pwfx
);
HeapFree
(
GetProcessHeap
(),
0
,
device
->
pwfx
);
device
->
pwfx
=
NULL
;
device
->
pwfx
=
NULL
;
LeaveCriticalSection
(
&
(
device
->
mixlock
));
return
DS_OK
;
return
DS_OK
;
}
}
...
@@ -253,6 +256,7 @@ HRESULT DSOUND_PrimaryStop(DirectSoundDevice *device)
...
@@ -253,6 +256,7 @@ HRESULT DSOUND_PrimaryStop(DirectSoundDevice *device)
HRESULT
err
=
DS_OK
;
HRESULT
err
=
DS_OK
;
TRACE
(
"(%p)
\n
"
,
device
);
TRACE
(
"(%p)
\n
"
,
device
);
EnterCriticalSection
(
&
(
device
->
mixlock
));
if
(
device
->
hwbuf
)
{
if
(
device
->
hwbuf
)
{
err
=
IDsDriverBuffer_Stop
(
device
->
hwbuf
);
err
=
IDsDriverBuffer_Stop
(
device
->
hwbuf
);
if
(
err
==
DSERR_BUFFERLOST
)
{
if
(
err
==
DSERR_BUFFERLOST
)
{
...
@@ -285,6 +289,7 @@ HRESULT DSOUND_PrimaryStop(DirectSoundDevice *device)
...
@@ -285,6 +289,7 @@ HRESULT DSOUND_PrimaryStop(DirectSoundDevice *device)
if
(
err
!=
DS_OK
)
if
(
err
!=
DS_OK
)
WARN
(
"waveOutPause failed
\n
"
);
WARN
(
"waveOutPause failed
\n
"
);
}
}
LeaveCriticalSection
(
&
(
device
->
mixlock
));
return
err
;
return
err
;
}
}
...
...
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