From fb46c5f1c1e3f6bb7c21010fd2741d9082b80f82 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Fri, 12 Jan 2007 13:13:10 +0100 Subject: [PATCH] usp10: Initialise the caller supplied ABC structure in ScriptPlace. Fixes a regression found by Lei Zhang. --- dlls/usp10/usp10.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c index 35cf0b244f7..4aab525eeec 100644 --- a/dlls/usp10/usp10.c +++ b/dlls/usp10/usp10.c @@ -1244,6 +1244,8 @@ HRESULT WINAPI ScriptPlace(HDC hdc, SCRIPT_CACHE *psc, const WORD *pwGlyphs, if (!(lpABC = usp_zero_alloc(sizeof(ABC) * cGlyphs))) return E_OUTOFMEMORY; + memset(pABC, 0, sizeof(ABC)); + /* FIXME: set pGoffset to more reasonable values */ if (!GetCharABCWidthsI(((ScriptCache *)*psc)->hdc, 0, cGlyphs, (WORD *) pwGlyphs, lpABC )) {