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
6fe18646
Commit
6fe18646
authored
Jul 19, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmsynth/tests: Use nameless unions/structs.
parent
af2bda32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
dmsynth.c
dlls/dmsynth/tests/dmsynth.c
+8
-8
No files found.
dlls/dmsynth/tests/dmsynth.c
View file @
6fe18646
...
...
@@ -108,30 +108,30 @@ static void test_dmsynth(void)
hr
=
IDirectMusicSynth_QueryInterface
(
dmsynth
,
&
IID_IKsControl
,
(
LPVOID
*
)
&
control_synth
);
ok
(
hr
==
S_OK
,
"IDirectMusicSynth_QueryInterface returned: %#lx
\n
"
,
hr
);
S
(
U
(
property
))
.
Id
=
0
;
S
(
U
(
property
))
.
Flags
=
KSPROPERTY_TYPE_GET
;
property
.
Id
=
0
;
property
.
Flags
=
KSPROPERTY_TYPE_GET
;
S
(
U
(
property
))
.
Set
=
GUID_DMUS_PROP_INSTRUMENT2
;
property
.
Set
=
GUID_DMUS_PROP_INSTRUMENT2
;
hr
=
IKsControl_KsProperty
(
control_synth
,
&
property
,
sizeof
(
property
),
&
value
,
sizeof
(
value
),
&
bytes
);
ok
(
hr
==
S_OK
,
"IKsControl_KsProperty returned: %#lx
\n
"
,
hr
);
ok
(
bytes
==
sizeof
(
DWORD
),
"Returned bytes: %lu, should be 4
\n
"
,
bytes
);
ok
(
value
==
TRUE
,
"Return value: %lu, should be 1
\n
"
,
value
);
S
(
U
(
property
))
.
Set
=
GUID_DMUS_PROP_DLS2
;
property
.
Set
=
GUID_DMUS_PROP_DLS2
;
hr
=
IKsControl_KsProperty
(
control_synth
,
&
property
,
sizeof
(
property
),
&
value
,
sizeof
(
value
),
&
bytes
);
ok
(
hr
==
S_OK
,
"IKsControl_KsProperty returned: %#lx
\n
"
,
hr
);
ok
(
bytes
==
sizeof
(
DWORD
),
"Returned bytes: %lu, should be 4
\n
"
,
bytes
);
ok
(
value
==
TRUE
,
"Return value: %lu, should be 1
\n
"
,
value
);
S
(
U
(
property
))
.
Set
=
GUID_DMUS_PROP_GM_Hardware
;
property
.
Set
=
GUID_DMUS_PROP_GM_Hardware
;
hr
=
IKsControl_KsProperty
(
control_synth
,
&
property
,
sizeof
(
property
),
&
value
,
sizeof
(
value
),
&
bytes
);
ok
(
hr
==
S_OK
,
"IKsControl_KsProperty returned: %#lx
\n
"
,
hr
);
ok
(
bytes
==
sizeof
(
DWORD
),
"Returned bytes: %lu, should be 4
\n
"
,
bytes
);
ok
(
value
==
FALSE
,
"Return value: %lu, should be 0
\n
"
,
value
);
S
(
U
(
property
))
.
Set
=
GUID_DMUS_PROP_GS_Hardware
;
property
.
Set
=
GUID_DMUS_PROP_GS_Hardware
;
hr
=
IKsControl_KsProperty
(
control_synth
,
&
property
,
sizeof
(
property
),
&
value
,
sizeof
(
value
),
&
bytes
);
ok
(
hr
==
S_OK
,
"IKsControl_KsProperty returned: %#lx
\n
"
,
hr
);
ok
(
bytes
==
sizeof
(
DWORD
),
"Returned bytes: %lu, should be 4
\n
"
,
bytes
);
ok
(
value
==
FALSE
,
"Return value: %lu, should be 0
\n
"
,
value
);
S
(
U
(
property
))
.
Set
=
GUID_DMUS_PROP_XG_Hardware
;
property
.
Set
=
GUID_DMUS_PROP_XG_Hardware
;
hr
=
IKsControl_KsProperty
(
control_synth
,
&
property
,
sizeof
(
property
),
&
value
,
sizeof
(
value
),
&
bytes
);
ok
(
hr
==
S_OK
,
"IKsControl_KsProperty returned: %#lx
\n
"
,
hr
);
ok
(
bytes
==
sizeof
(
DWORD
),
"Returned bytes: %lu, should be 4
\n
"
,
bytes
);
...
...
@@ -140,7 +140,7 @@ static void test_dmsynth(void)
hr
=
IDirectMusicSynthSink_QueryInterface
(
dmsynth_sink
,
&
IID_IKsControl
,
(
LPVOID
*
)
&
control_sink
);
ok
(
hr
==
S_OK
,
"IDirectMusicSynthSink_QueryInterface returned: %#lx
\n
"
,
hr
);
S
(
U
(
property
))
.
Set
=
GUID_DMUS_PROP_SinkUsesDSound
;
property
.
Set
=
GUID_DMUS_PROP_SinkUsesDSound
;
hr
=
IKsControl_KsProperty
(
control_sink
,
&
property
,
sizeof
(
property
),
&
value
,
sizeof
(
value
),
&
bytes
);
ok
(
hr
==
S_OK
,
"IKsControl_KsProperty returned: %#lx
\n
"
,
hr
);
ok
(
bytes
==
sizeof
(
DWORD
),
"Returned bytes: %lu, should be 4
\n
"
,
bytes
);
...
...
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