Fix char signedness in glyph offset calculation, fixes #2137

This commit is contained in:
Giovanni Panozzo 2016-02-21 17:52:52 +01:00
parent 503399f571
commit 1dea98026a
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ void update_process_glyph(rdpContext* context, BYTE* data, int* index,
if (offset & 0x80)
{
offset = data[*index + 1] | ((int)((char)data[*index + 2]) << 8);
offset = data[*index + 1] | ((int)((signed char)data[*index + 2]) << 8);
(*index)++;
(*index)++;
}