[channel,rdpsnd] fix queue cleanup

The argument is of type wMessage* and we only care for messages with an
ID of 0
This commit is contained in:
Armin Novak
2022-12-06 13:22:43 +01:00
committed by akallabeth
parent 7f9b5ada69
commit 64c94e06f3

View File

@@ -1304,7 +1304,12 @@ static UINT rdpsnd_virtual_channel_event_disconnected(rdpsndPlugin* rdpsnd)
static void _queue_free(void* obj)
{
wStream* s = obj;
wMessage* msg = obj;
if (!msg)
return;
if (msg->id != 0)
return;
wStream* s = msg->wParam;
Stream_Release(s);
}