usp10: Filter out DeltaFormat == 0 too, valid range is [1, 3].

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2017-02-22 12:14:50 +03:00 committed by Alexandre Julliard
parent 66dce1e75f
commit 892393bb76
1 changed files with 1 additions and 1 deletions

View File

@ -1512,7 +1512,7 @@ static INT GPOS_get_device_table_value(const OT_DeviceTable *DeviceTable, WORD p
TRACE("device table, format %#x, index %i\n", format, index); TRACE("device table, format %#x, index %i\n", format, index);
if (format & ~0x3) if (format < 1 || format > 3)
{ {
WARN("invalid delta format %#x\n", format); WARN("invalid delta format %#x\n", format);
return 0; return 0;