mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 07:41:02 +00:00
dmime: Avoid crashing when purging notification messages.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55792
This commit is contained in:
parent
6239db72ed
commit
4d0c3d89a4
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue