mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
gdi32: Remove a incorrect sizeof from pointer arithmetic (Coverity).
This commit is contained in:
parent
59fc063a34
commit
06935e9323
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue