dmime: Avoid crashing when purging notification messages.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55792
This commit is contained in:
Rémi Bernon 2023-10-17 11:23:16 +02:00 committed by Alexandre Julliard
parent 6239db72ed
commit 4d0c3d89a4

View file

@ -1783,6 +1783,7 @@ static HRESULT WINAPI performance_tool_ProcessPMsg(IDirectMusicTool *iface,
do
{
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;
list_remove(&previous->entry);
list_init(&previous->entry);