Nikolay Sivov : usp10: Filter out DeltaFormat == 0 too, valid range is [1, 3].
Alexandre Julliard
julliard at winehq.org
Mon Feb 27 15:12:09 CST 2017
Module: wine
Branch: master
Commit: 892393bb76110ab936b98e79fef2299c13df5d96
URL: http://source.winehq.org/git/wine.git/?a=commit;h=892393bb76110ab936b98e79fef2299c13df5d96
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Wed Feb 22 12:14:50 2017 +0300
usp10: Filter out DeltaFormat == 0 too, valid range is [1, 3].
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/usp10/opentype.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/usp10/opentype.c b/dlls/usp10/opentype.c
index a1ad3dc..4f3b559 100644
--- a/dlls/usp10/opentype.c
+++ b/dlls/usp10/opentype.c
@@ -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;
More information about the wine-cvs
mailing list