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
a749f27a
Commit
a749f27a
authored
Nov 03, 2013
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm/tests: Use the explicit CreateEventW() and don't bother testing it.
parent
bc967a6e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
15 deletions
+4
-15
capture.c
dlls/winmm/tests/capture.c
+1
-6
mixer.c
dlls/winmm/tests/mixer.c
+1
-2
wave.c
dlls/winmm/tests/wave.c
+2
-7
No files found.
dlls/winmm/tests/capture.c
View file @
a749f27a
...
...
@@ -130,7 +130,7 @@ static void check_position(int device, HWAVEIN win, DWORD bytes,
static
void
wave_in_test_deviceIn
(
int
device
,
LPWAVEFORMATEX
pwfx
,
DWORD
format
,
DWORD
flags
,
LPWAVEINCAPS
pcaps
)
{
HWAVEIN
win
;
HANDLE
hevent
;
HANDLE
hevent
=
CreateEventW
(
NULL
,
FALSE
,
FALSE
,
NULL
)
;
WAVEHDR
frag
;
MMRESULT
rc
;
DWORD
res
;
...
...
@@ -139,11 +139,6 @@ static void wave_in_test_deviceIn(int device, LPWAVEFORMATEX pwfx, DWORD format,
WORD
wBitsPerSample
=
pwfx
->
wBitsPerSample
;
DWORD
nSamplesPerSec
=
pwfx
->
nSamplesPerSec
;
hevent
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
ok
(
hevent
!=
NULL
,
"CreateEvent(): error=%d
\n
"
,
GetLastError
());
if
(
hevent
==
NULL
)
return
;
win
=
NULL
;
rc
=
waveInOpen
(
&
win
,
device
,
pwfx
,(
DWORD_PTR
)
hevent
,
0
,
CALLBACK_EVENT
|
flags
);
/* Note: Win9x doesn't know WAVE_FORMAT_DIRECT */
...
...
dlls/winmm/tests/mixer.c
View file @
a749f27a
...
...
@@ -1069,8 +1069,7 @@ static void test_mixerOpen(void)
if
(
rc
==
MMSYSERR_NOERROR
)
test_mixerClose
(
mix
);
event
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
ok
(
event
!=
NULL
,
"CreateEvent(): error=%d
\n
"
,
GetLastError
());
event
=
CreateEventW
(
NULL
,
FALSE
,
FALSE
,
NULL
);
/* NOTSUPPORTED is not broken, but it enables the todo_wine marker. */
rc
=
mixerOpen
(
&
mix
,
d
,
(
DWORD_PTR
)
event
,
0
,
CALLBACK_EVENT
);
...
...
dlls/winmm/tests/wave.c
View file @
a749f27a
...
...
@@ -598,7 +598,7 @@ static void wave_out_test_deviceOut(int device, double duration,
BOOL
interactive
,
BOOL
sine
,
BOOL
pause
)
{
HWAVEOUT
wout
;
HANDLE
hevent
;
HANDLE
hevent
=
CreateEventW
(
NULL
,
FALSE
,
FALSE
,
NULL
)
;
WAVEHDR
*
frags
=
0
;
MMRESULT
rc
;
DWORD
volume
;
...
...
@@ -616,11 +616,6 @@ static void wave_out_test_deviceOut(int device, double duration,
DWORD
frag_length
;
int
i
,
j
;
hevent
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
ok
(
hevent
!=
NULL
,
"CreateEvent(): error=%d
\n
"
,
GetLastError
());
if
(
hevent
==
NULL
)
return
;
if
((
flags
&
CALLBACK_TYPEMASK
)
==
CALLBACK_EVENT
)
{
callback
=
(
DWORD_PTR
)
hevent
;
callback_instance
=
0
;
...
...
@@ -1532,7 +1527,7 @@ static void test_fragmentsize(void)
fmt
.
nAvgBytesPerSec
=
fmt
.
nBlockAlign
*
fmt
.
nSamplesPerSec
;
fmt
.
cbSize
=
sizeof
(
WAVEFORMATEX
);
hevent
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
hevent
=
CreateEvent
W
(
NULL
,
FALSE
,
FALSE
,
NULL
);
g_tid
=
GetCurrentThreadId
();
rc
=
waveOutOpen
(
&
wout
,
WAVE_MAPPER
,
&
fmt
,
(
DWORD_PTR
)
callback_func
,
...
...
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