Fixed glyph cache
authorArmin Novak <armin.novak@thincast.com>
Tue, 16 Oct 2018 14:10:17 +0000 (16:10 +0200)
committerArmin Novak <armin.novak@thincast.com>
Tue, 16 Oct 2018 14:10:17 +0000 (16:10 +0200)
libfreerdp/core/orders.c

index cd660d7..a151821 100644 (file)
@@ -4117,24 +4117,24 @@ static BOOL update_recv_secondary_order(rdpUpdate* update, wStream* s,
                                        case GLYPH_SUPPORT_PARTIAL:
                                        case GLYPH_SUPPORT_FULL:
                                                {
-                                                       CACHE_GLYPH_V2_ORDER* order = update_read_cache_glyph_v2_order(update, s, extraFlags);
+                                                       CACHE_GLYPH_ORDER* order = update_read_cache_glyph_order(update, s, extraFlags);
 
                                                        if (order)
                                                        {
-                                                               rc = IFCALLRESULT(FALSE, secondary->CacheGlyphV2, context, order);
-                                                               free_cache_glyph_v2_order(context, order);
+                                                               rc = IFCALLRESULT(FALSE, secondary->CacheGlyph, context, order);
+                                                               free_cache_glyph_order(context, order);
                                                        }
                                                }
                                                break;
 
                                        case GLYPH_SUPPORT_ENCODE:
                                                {
-                                                       CACHE_GLYPH_ORDER* order = update_read_cache_glyph_order(update, s, extraFlags);
+                                                       CACHE_GLYPH_V2_ORDER* order = update_read_cache_glyph_v2_order(update, s, extraFlags);
 
                                                        if (order)
                                                        {
-                                                               rc = IFCALLRESULT(FALSE, secondary->CacheGlyph, context, order);
-                                                               free_cache_glyph_order(context, order);
+                                                               rc = IFCALLRESULT(FALSE, secondary->CacheGlyphV2, context, order);
+                                                               free_cache_glyph_v2_order(context, order);
                                                        }
                                                }
                                                break;