[channels,drdynvc] check pointer before reset

This commit is contained in:
Armin Novak
2026-01-27 08:58:21 +01:00
parent 076a8386a6
commit cb7f295bc7

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);
}
}