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
425c270d
Commit
425c270d
authored
Jan 29, 2024
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 07, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Add tests about segment state's graph interface.
Signed-off-by:
Eric Pouech
<
epouech@codeweavers.com
>
parent
ed92095f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
dmime.c
dlls/dmime/tests/dmime.c
+14
-0
No files found.
dlls/dmime/tests/dmime.c
View file @
425c270d
...
@@ -4575,6 +4575,20 @@ static void test_segment_state(void)
...
@@ -4575,6 +4575,20 @@ static void test_segment_state(void)
ok
(
state
!=
tmp_state
,
"got %p
\n
"
,
state
);
ok
(
state
!=
tmp_state
,
"got %p
\n
"
,
state
);
IDirectMusicSegmentState_Release
(
tmp_state
);
IDirectMusicSegmentState_Release
(
tmp_state
);
graph
=
(
void
*
)
0xdeadbeef
;
hr
=
IDirectMusicSegmentState_QueryInterface
(
state
,
&
IID_IDirectMusicGraph
,
(
void
**
)
&
graph
);
todo_wine
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
IDirectMusicTool
*
segment_state_tool
;
hr
=
IDirectMusicGraph_GetTool
(
graph
,
0
,
&
segment_state_tool
);
ok
(
hr
==
E_NOTIMPL
,
"got %#lx
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
IDirectMusicTool_Release
(
segment_state_tool
);
IDirectMusicGraph_Release
(
graph
);
}
tmp_state
=
(
void
*
)
0xdeadbeef
;
tmp_state
=
(
void
*
)
0xdeadbeef
;
hr
=
IDirectMusicPerformance_GetSegmentState
(
performance
,
&
tmp_state
,
0
);
hr
=
IDirectMusicPerformance_GetSegmentState
(
performance
,
&
tmp_state
,
0
);
ok
(
hr
==
S_OK
||
broken
(
hr
==
DMUS_E_NOT_FOUND
)
/* sometimes on Windows */
,
"got %#lx
\n
"
,
hr
);
ok
(
hr
==
S_OK
||
broken
(
hr
==
DMUS_E_NOT_FOUND
)
/* sometimes on Windows */
,
"got %#lx
\n
"
,
hr
);
...
...
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