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
3ad341b6
Commit
3ad341b6
authored
Dec 15, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Dec 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime/tests: Add optional notification sequence on segment stop.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55637
parent
cbf48dae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
dmime.c
dlls/dmime/tests/dmime.c
+23
-0
No files found.
dlls/dmime/tests/dmime.c
View file @
3ad341b6
...
...
@@ -3465,6 +3465,29 @@ static void test_notification_pmsg(void)
ret
=
test_tool_wait_message
(
tool
,
50
,
(
DMUS_PMSG
**
)
&
notif
);
ok
(
!
ret
,
"got %#lx
\n
"
,
ret
);
if
(
notif
->
dwNotificationOption
==
DMUS_NOTIFICATION_SEGALMOSTEND
)
{
check_dmus_notification_pmsg
(
notif
,
music_time
+
length
-
1450
,
DMUS_PMSGF_TOOL_IMMEDIATE
,
&
GUID_NOTIFICATION_SEGMENT
,
DMUS_NOTIFICATION_SEGALMOSTEND
,
state
);
hr
=
IDirectMusicPerformance_FreePMsg
(
performance
,
(
DMUS_PMSG
*
)
notif
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
ret
=
test_tool_wait_message
(
tool
,
50
,
(
DMUS_PMSG
**
)
&
notif
);
ok
(
!
ret
,
"got %#lx
\n
"
,
ret
);
check_dmus_notification_pmsg
(
notif
,
music_time
+
length
,
DMUS_PMSGF_TOOL_IMMEDIATE
,
&
GUID_NOTIFICATION_SEGMENT
,
DMUS_NOTIFICATION_SEGEND
,
state
);
hr
=
IDirectMusicPerformance_FreePMsg
(
performance
,
(
DMUS_PMSG
*
)
notif
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
ret
=
test_tool_wait_message
(
tool
,
50
,
&
msg
);
ok
(
!
ret
,
"got %#lx
\n
"
,
ret
);
check_dmus_dirty_pmsg
(
msg
,
music_time
+
length
);
hr
=
IDirectMusicPerformance_FreePMsg
(
performance
,
msg
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
ret
=
test_tool_wait_message
(
tool
,
50
,
(
DMUS_PMSG
**
)
&
notif
);
ok
(
!
ret
,
"got %#lx
\n
"
,
ret
);
}
check_dmus_notification_pmsg
(
notif
,
music_time
,
DMUS_PMSGF_TOOL_IMMEDIATE
,
&
GUID_NOTIFICATION_SEGMENT
,
DMUS_NOTIFICATION_SEGABORT
,
state
);
hr
=
IDirectMusicPerformance_FreePMsg
(
performance
,
(
DMUS_PMSG
*
)
notif
);
...
...
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