ignore colour-cache with id 0. This fixes my colour-problems when using

compressed rdp at 8bpp


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@892 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Michael Gernoth 2005-04-23 22:36:42 +00:00
parent 91fbbc4cdb
commit ad536be89b

View File

@ -1066,6 +1066,8 @@ process_colcache(STREAM s)
DEBUG(("COLCACHE(id=%d,n=%d)\n", cache_id, map.ncolours));
hmap = ui_create_colourmap(&map);
if (cache_id)
ui_set_colourmap(hmap);
xfree(map.colours);