From 06935e9323da56dd28a63da9c1dd59170c270097 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 18 Oct 2011 05:07:32 +0200 Subject: [PATCH] gdi32: Remove a incorrect sizeof from pointer arithmetic (Coverity). --- dlls/gdi32/tests/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c index f1277432c3a..a17b4c8e95c 100644 --- a/dlls/gdi32/tests/font.c +++ b/dlls/gdi32/tests/font.c @@ -2473,7 +2473,7 @@ static BOOL get_first_last_from_cmap4(void *ptr, DWORD *first, DWORD *last, DWOR + i - seg_count; /* some fonts have broken last segment */ - if ((char *)(glyph_ids + index + sizeof(*glyph_ids)) < (char *)ptr + limit) + if ((char *)(glyph_ids + index + 1) < (char *)ptr + limit) index = GET_BE_WORD(glyph_ids[index]); else {