Henri Verbeet : usp10: Use heap_calloc() in requires_fallback().
Alexandre Julliard
julliard at winehq.org
Fri Mar 9 16:11:51 CST 2018
Module: wine
Branch: master
Commit: 9140256ba860adc9890635b3fc1b790f1000718f
URL: https://source.winehq.org/git/wine.git/?a=commit;h=9140256ba860adc9890635b3fc1b790f1000718f
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Fri Mar 9 10:19:55 2018 +0330
usp10: Use heap_calloc() in requires_fallback().
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/usp10/usp10.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c
index cf42c93..5442830 100644
--- a/dlls/usp10/usp10.c
+++ b/dlls/usp10/usp10.c
@@ -1948,8 +1948,7 @@ static BOOL requires_fallback(HDC hdc, SCRIPT_CACHE *psc, SCRIPT_ANALYSIS *psa,
if (SHAPE_CheckFontForRequiredFeatures(hdc, (ScriptCache *)*psc, psa) != S_OK)
return TRUE;
- glyphs = heap_alloc(sizeof(WORD) * cChars);
- if (!glyphs)
+ if (!(glyphs = heap_calloc(cChars, sizeof(*glyphs))))
return FALSE;
if (ScriptGetCMap(hdc, psc, pwcInChars, cChars, 0, glyphs) != S_OK)
{
More information about the wine-cvs
mailing list