usp10: Initialise the caller supplied ABC structure in ScriptPlace.

Fixes a regression found by Lei Zhang.
This commit is contained in:
Hans Leidekker 2007-01-12 13:13:10 +01:00 committed by Alexandre Julliard
parent 76ce82374e
commit fb46c5f1c1
1 changed files with 2 additions and 0 deletions

View File

@ -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 ))
{