mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-04 22:18:13 +00:00
dmime: Send DMUS_NOTIFICATION_SEGALMOSTEND before DMUS_NOTIFICATION_SEGEND.
This commit is contained in:
parent
60538c57cd
commit
a66b6f96b6
|
@ -1237,11 +1237,11 @@ static HRESULT WINAPI performance_PlaySegmentEx(IDirectMusicPerformance8 *iface,
|
|||
hr = segment_state_play(state, iface);
|
||||
|
||||
if (SUCCEEDED(hr))
|
||||
hr = performance_send_notification_pmsg(This, music_time + length, This->notification_segment,
|
||||
GUID_NOTIFICATION_SEGMENT, DMUS_NOTIFICATION_SEGEND, (IUnknown *)state);
|
||||
hr = performance_send_notification_pmsg(This, music_time + length - 1450, This->notification_segment,
|
||||
GUID_NOTIFICATION_SEGMENT, DMUS_NOTIFICATION_SEGALMOSTEND, (IUnknown *)state);
|
||||
if (SUCCEEDED(hr))
|
||||
hr = performance_send_notification_pmsg(This, music_time + length, This->notification_segment,
|
||||
GUID_NOTIFICATION_SEGMENT, DMUS_NOTIFICATION_SEGALMOSTEND, (IUnknown *)state);
|
||||
GUID_NOTIFICATION_SEGMENT, DMUS_NOTIFICATION_SEGEND, (IUnknown *)state);
|
||||
if (SUCCEEDED(hr))
|
||||
hr = performance_send_pmsg(This, music_time + length, DMUS_PMSGF_TOOL_IMMEDIATE, DMUS_PMSGT_DIRTY, NULL);
|
||||
if (SUCCEEDED(hr))
|
||||
|
|
|
@ -3019,8 +3019,6 @@ static void check_dmus_notification_pmsg_(int line, DMUS_NOTIFICATION_PMSG *msg,
|
|||
"got dwType %#lx\n", msg->dwType);
|
||||
ok_(__FILE__, line)(IsEqualGUID(&msg->guidNotificationType, type),
|
||||
"got guidNotificationType %s\n", debugstr_guid(&msg->guidNotificationType));
|
||||
todo_wine_if(IsEqualGUID(type, &GUID_NOTIFICATION_SEGMENT) &&
|
||||
(option == DMUS_NOTIFICATION_SEGALMOSTEND || option == DMUS_NOTIFICATION_SEGEND))
|
||||
ok_(__FILE__, line)(msg->dwNotificationOption == option,
|
||||
"got dwNotificationOption %#lx\n", msg->dwNotificationOption);
|
||||
ok_(__FILE__, line)(!msg->dwField1, "got dwField1 %lu\n", msg->dwField1);
|
||||
|
|
Loading…
Reference in a new issue