drdynvc: ensure stream != NULL
This commit is contained in:
parent
6a997fad53
commit
8615f74eac
@ -969,7 +969,9 @@ static void drdynvc_virtual_channel_event_data_received(drdynvcPlugin* drdynvc,
|
|||||||
drdynvc->data_in = Stream_New(NULL, totalLength);
|
drdynvc->data_in = Stream_New(NULL, totalLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
data_in = drdynvc->data_in;
|
if (!(data_in = drdynvc->data_in))
|
||||||
|
return;
|
||||||
|
|
||||||
if (!Stream_EnsureRemainingCapacity(data_in, (int) dataLength))
|
if (!Stream_EnsureRemainingCapacity(data_in, (int) dataLength))
|
||||||
{
|
{
|
||||||
Stream_Free(drdynvc->data_in, TRUE);
|
Stream_Free(drdynvc->data_in, TRUE);
|
||||||
|
Loading…
Reference in New Issue
Block a user