From: Anton Baskanov baskanov@gmail.com
--- dlls/dmime/performance.c | 2 +- dlls/dmime/tests/dmime.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/dmime/performance.c b/dlls/dmime/performance.c index dd7395f457f..ce73be848c3 100644 --- a/dlls/dmime/performance.c +++ b/dlls/dmime/performance.c @@ -2056,7 +2056,7 @@ static HRESULT WINAPI performance_tool_ProcessPMsg(IDirectMusicTool *iface, if (note->mtDuration) { msg->mtTime -= note->nOffset; - msg->mtTime += note->mtDuration; + msg->mtTime += note->mtDuration - 1; if (FAILED(hr = IDirectMusicPerformance8_MusicToReferenceTime(performance, msg->mtTime, &msg->rtTime))) return hr; note->bFlags &= ~DMUS_NOTEF_NOTEON; diff --git a/dlls/dmime/tests/dmime.c b/dlls/dmime/tests/dmime.c index 8290d3e595c..9e407a97548 100644 --- a/dlls/dmime/tests/dmime.c +++ b/dlls/dmime/tests/dmime.c @@ -2592,8 +2592,8 @@ static void test_performance_tool(void) hr = IDirectMusicTool_ProcessPMsg(tool, performance, (DMUS_PMSG *)¬e); ok(hr == DMUS_S_REQUEUE, "got %#lx\n", hr); ok(note.dwSize == sizeof(DMUS_NOTE_PMSG), "got %lu\n", note.dwSize); - todo_wine ok(llabs(note.rtTime - rt - 6503906) < 10, "got %I64d\n", note.rtTime - rt); - todo_wine ok(note.mtTime - mt == 999, "got %ld\n", note.mtTime - mt); + ok(llabs(note.rtTime - rt - 6503906) < 10, "got %I64d\n", note.rtTime - rt); + ok(note.mtTime - mt == 999, "got %ld\n", note.mtTime - mt); ok(note.dwFlags == (DMUS_PMSGF_REFTIME | DMUS_PMSGF_MUSICTIME | DMUS_PMSGF_TOOL_QUEUE), "got %#lx\n", note.dwFlags); ok(!note.dwPChannel, "got %lu\n", note.dwPChannel);