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
7437eb63
Commit
7437eb63
authored
Feb 23, 2012
by
Andrew Eikum
Committed by
Alexandre Julliard
Feb 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineoss.drv: Fix DeleteTimerQueueTimer usage.
parent
4d2ea61a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
+19
-11
mmdevdrv.c
dlls/wineoss.drv/mmdevdrv.c
+19
-11
No files found.
dlls/wineoss.drv/mmdevdrv.c
View file @
7437eb63
...
...
@@ -1335,13 +1335,15 @@ static void CALLBACK oss_period_callback(void *user, BOOLEAN timer)
EnterCriticalSection
(
&
This
->
lock
);
if
(
This
->
dataflow
==
eRender
&&
This
->
held_frames
)
oss_write_data
(
This
);
else
if
(
This
->
dataflow
==
eCapture
)
oss_read_data
(
This
);
if
(
This
->
playing
){
if
(
This
->
dataflow
==
eRender
&&
This
->
held_frames
)
oss_write_data
(
This
);
else
if
(
This
->
dataflow
==
eCapture
)
oss_read_data
(
This
);
if
(
This
->
event
)
SetEvent
(
This
->
event
);
if
(
This
->
event
)
SetEvent
(
This
->
event
);
}
LeaveCriticalSection
(
&
This
->
lock
);
}
...
...
@@ -1384,6 +1386,8 @@ static HRESULT WINAPI AudioClient_Start(IAudioClient *iface)
static
HRESULT
WINAPI
AudioClient_Stop
(
IAudioClient
*
iface
)
{
ACImpl
*
This
=
impl_from_IAudioClient
(
iface
);
HANDLE
event
;
DWORD
wait
;
TRACE
(
"(%p)
\n
"
,
This
);
...
...
@@ -1399,16 +1403,20 @@ static HRESULT WINAPI AudioClient_Stop(IAudioClient *iface)
return
S_FALSE
;
}
if
(
This
->
timer
&&
This
->
timer
!=
INVALID_HANDLE_VALUE
){
DeleteTimerQueueTimer
(
g_timer_q
,
This
->
timer
,
INVALID_HANDLE_VALUE
);
This
->
timer
=
NULL
;
}
event
=
CreateEventW
(
NULL
,
TRUE
,
FALSE
,
NULL
);
wait
=
!
DeleteTimerQueueTimer
(
g_timer_q
,
This
->
timer
,
event
);
if
(
wait
)
WARN
(
"DeleteTimerQueueTimer error %u
\n
"
,
GetLastError
())
;
wait
=
wait
&&
GetLastError
()
==
ERROR_IO_PENDING
;
This
->
playing
=
FALSE
;
LeaveCriticalSection
(
&
This
->
lock
);
if
(
event
&&
wait
)
WaitForSingleObject
(
event
,
INFINITE
);
CloseHandle
(
event
);
return
S_OK
;
}
...
...
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