Fixed null pointer dereference.

This commit is contained in:
Armin Novak 2014-11-17 01:23:54 +01:00
parent d30b6ed04d
commit 1873cc037d

View File

@ -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
{ {