Commit 892393bb authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

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

parent 66dce1e7
......@@ -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);
if (format & ~0x3)
if (format < 1 || format > 3)
{
WARN("invalid delta format %#x\n", format);
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment