server/test: add a pointer check.

This commit is contained in:
Vic Lee 2011-08-26 17:24:17 +08:00
parent a5e8bc64cf
commit 27d403e01a

View File

@ -183,7 +183,7 @@ static void test_peer_draw_icon(freerdp_peer* client, int x, int y)
RFX_RECT rect;
STREAM* s;
if (!client->settings->rfx_codec)
if (!client->settings->rfx_codec || !info)
return;
if (info->icon_width < 1)
return;