xrdp: fix a crash in painter when invalid target is set

ulab-next
Jay Sorg 11 years ago
parent 2c021f5fab
commit cff17f3038

@ -2439,7 +2439,7 @@ server_switch_os_surface(struct xrdp_mod *mod, int rdpindex)
bi = xrdp_cache_get_os_bitmap(wm->cache, rdpindex); bi = xrdp_cache_get_os_bitmap(wm->cache, rdpindex);
if (bi != 0) if ((bi != 0) && (bi->bitmap != 0))
{ {
//g_writeln("server_switch_os_surface: setting target_surface to rdpid %d", id); //g_writeln("server_switch_os_surface: setting target_surface to rdpid %d", id);
wm->target_surface = bi->bitmap; wm->target_surface = bi->bitmap;

Loading…
Cancel
Save