Merge pull request #12189 from akallabeth/assert-fix

[channels,drdynvc] check pointer before reset
This commit is contained in:
akallabeth
2026-01-27 09:22:48 +01:00
committed by GitHub

View File

@@ -509,11 +509,12 @@ static UINT dvcman_channel_close(DVCMAN_CHANNEL* channel, BOOL perRequest, BOOL
channel->state = DVC_CHANNEL_CLOSED;
{
check_open_close_receive(channel);
IWTSVirtualChannelCallback* cb = channel->channel_callback;
channel->channel_callback = NULL;
if (cb)
{
check_open_close_receive(channel);
IFCALL(cb->OnClose, cb);
}
}