From 416801a10666f2cb014e58b145cad03d4fbef066 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 10 Aug 2016 13:44:55 +0200 Subject: [PATCH] Fixed warning. --- libfreerdp/cache/glyph.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libfreerdp/cache/glyph.c b/libfreerdp/cache/glyph.c index 4ae5986..60ad331 100644 --- a/libfreerdp/cache/glyph.c +++ b/libfreerdp/cache/glyph.c @@ -51,7 +51,10 @@ static UINT32 update_glyph_offset(const BYTE* data, UINT32 index, INT32* x, UINT32 offset = data[index++]; if (offset & 0x80) - offset = data[index++] | ((UINT32)data[index++]) << 8; + { + offset = data[index++]; + offset |= ((UINT32)data[index++]) << 8; + } if (flAccel & SO_VERTICAL) *y += offset; -- 2.7.4