Fixed null pointer dereference.
This commit is contained in:
parent
d30b6ed04d
commit
1873cc037d
@ -55,7 +55,8 @@ void tsmf_playback_ack(IWTSVirtualChannelCallback *pChannelCallback,
|
|||||||
if (!callback || !callback->channel || !callback->channel->Write)
|
if (!callback || !callback->channel || !callback->channel->Write)
|
||||||
{
|
{
|
||||||
WLog_ERR(TAG, "callback=%p, channel=%p, write=%p", callback,
|
WLog_ERR(TAG, "callback=%p, channel=%p, write=%p", callback,
|
||||||
callback->channel, callback->channel->Write);
|
callback ? callback->channel : NULL,
|
||||||
|
(callback && callback->channel) ? callback->channel->Write : NULL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user