Commit 4d0c3d89 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

dmime: Avoid crashing when purging notification messages.

parent 6239db72
...@@ -1783,6 +1783,7 @@ static HRESULT WINAPI performance_tool_ProcessPMsg(IDirectMusicTool *iface, ...@@ -1783,6 +1783,7 @@ static HRESULT WINAPI performance_tool_ProcessPMsg(IDirectMusicTool *iface,
do do
{ {
previous = LIST_ENTRY(list_head(&This->notifications), struct message, entry); previous = LIST_ENTRY(list_head(&This->notifications), struct message, entry);
if (This->notification_timeout <= 0) break; /* negative values may be used to keep everything */
if (message->msg.rtTime - previous->msg.rtTime <= This->notification_timeout) break; if (message->msg.rtTime - previous->msg.rtTime <= This->notification_timeout) break;
list_remove(&previous->entry); list_remove(&previous->entry);
list_init(&previous->entry); list_init(&previous->entry);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment