dwrite: Return strictly 0/1 for BOOL return type (PVS-Studio).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2015-10-12 23:06:32 +03:00 committed by Alexandre Julliard
parent 4b6a7e78e9
commit 83d484834d
1 changed files with 1 additions and 1 deletions

View File

@ -641,7 +641,7 @@ INT freetype_get_charmap_index(IDWriteFontFace2 *fontface, BOOL *is_symbol)
if (os2->version == 0)
*is_symbol = pFT_Get_First_Char(face, &dummy) >= 0x100;
else
*is_symbol = os2->ulCodePageRange1 & FS_SYMBOL;
*is_symbol = !!(os2->ulCodePageRange1 & FS_SYMBOL);
}
for (i = 0; i < face->num_charmaps; i++)