From: Nikolay Sivov nsivov@codeweavers.com
Otherwise it's undefined.
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com --- dlls/dwrite/opentype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dwrite/opentype.c b/dlls/dwrite/opentype.c index 51563cb2ea8..c36f7ba1f77 100644 --- a/dlls/dwrite/opentype.c +++ b/dlls/dwrite/opentype.c @@ -4822,7 +4822,7 @@ static unsigned int shaping_features_get_mask(const struct shaping_features *fea unsigned int shape_get_feature_1_mask(const struct shaping_features *features, unsigned int tag) { unsigned int shift, mask = shaping_features_get_mask(features, tag, &shift); - return (1 << shift) & mask; + return mask ? ((1 << shift) & mask) : 0; }
static void opentype_layout_get_glyph_range_for_text(struct scriptshaping_context *context, unsigned int start_char,