Nikolay Sivov : dwrite: Return strictly 0/1 for BOOL return type ( PVS-Studio).
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Oct 13 10:53:46 CDT 2015
Module: wine
Branch: master
Commit: 83d484834d045388b16cc2652ea37d07f654c765
URL: http://source.winehq.org/git/wine.git/?a=commit;h=83d484834d045388b16cc2652ea37d07f654c765
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon Oct 12 23:06:32 2015 +0300
dwrite: Return strictly 0/1 for BOOL return type (PVS-Studio).
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dwrite/freetype.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dwrite/freetype.c b/dlls/dwrite/freetype.c
index cfae1af..87ccc7c 100644
--- a/dlls/dwrite/freetype.c
+++ b/dlls/dwrite/freetype.c
@@ -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++)
More information about the wine-cvs
mailing list