mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[channels,drdynvc] check pointer before reset
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user