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
b18c5e81
Commit
b18c5e81
authored
Dec 09, 2012
by
Jörg Höhle
Committed by
Alexandre Julliard
Dec 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi: SetEventHandle is allowed only once.
parent
c38d5ce7
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
1 deletion
+19
-1
render.c
dlls/mmdevapi/tests/render.c
+1
-1
mmdevdrv.c
dlls/winealsa.drv/mmdevdrv.c
+6
-0
mmdevdrv.c
dlls/winecoreaudio.drv/mmdevdrv.c
+6
-0
mmdevdrv.c
dlls/wineoss.drv/mmdevdrv.c
+6
-0
No files found.
dlls/mmdevapi/tests/render.c
View file @
b18c5e81
...
...
@@ -634,7 +634,7 @@ static void test_event(void)
ok
(
hr
==
S_OK
,
"SetEventHandle failed: %08x
\n
"
,
hr
);
hr
=
IAudioClient_SetEventHandle
(
ac
,
event
);
todo_wine
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_INVALID_NAME
),
"SetEventHandle returns %08x
\n
"
,
hr
);
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_INVALID_NAME
),
"SetEventHandle returns %08x
\n
"
,
hr
);
r
=
WaitForSingleObject
(
event
,
40
);
ok
(
r
==
WAIT_TIMEOUT
,
"Wait(event) before Start gave %x
\n
"
,
r
);
...
...
dlls/winealsa.drv/mmdevdrv.c
View file @
b18c5e81
...
...
@@ -2284,6 +2284,12 @@ static HRESULT WINAPI AudioClient_SetEventHandle(IAudioClient *iface,
return
AUDCLNT_E_EVENTHANDLE_NOT_EXPECTED
;
}
if
(
This
->
event
){
LeaveCriticalSection
(
&
This
->
lock
);
FIXME
(
"called twice
\n
"
);
return
HRESULT_FROM_WIN32
(
ERROR_INVALID_NAME
);
}
This
->
event
=
event
;
LeaveCriticalSection
(
&
This
->
lock
);
...
...
dlls/winecoreaudio.drv/mmdevdrv.c
View file @
b18c5e81
...
...
@@ -1816,6 +1816,12 @@ static HRESULT WINAPI AudioClient_SetEventHandle(IAudioClient *iface,
return
AUDCLNT_E_EVENTHANDLE_NOT_EXPECTED
;
}
if
(
This
->
event
){
OSSpinLockUnlock
(
&
This
->
lock
);
FIXME
(
"called twice
\n
"
);
return
HRESULT_FROM_WIN32
(
ERROR_INVALID_NAME
);
}
This
->
event
=
event
;
OSSpinLockUnlock
(
&
This
->
lock
);
...
...
dlls/wineoss.drv/mmdevdrv.c
View file @
b18c5e81
...
...
@@ -1620,6 +1620,12 @@ static HRESULT WINAPI AudioClient_SetEventHandle(IAudioClient *iface,
return
AUDCLNT_E_EVENTHANDLE_NOT_EXPECTED
;
}
if
(
This
->
event
){
LeaveCriticalSection
(
&
This
->
lock
);
FIXME
(
"called twice
\n
"
);
return
HRESULT_FROM_WIN32
(
ERROR_INVALID_NAME
);
}
This
->
event
=
event
;
LeaveCriticalSection
(
&
This
->
lock
);
...
...
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