Hans Leidekker : usp10:
Initialise the caller supplied ABC structure in ScriptPlace.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Jan 12 13:55:14 CST 2007
Module: wine
Branch: master
Commit: fb46c5f1c1e3f6bb7c21010fd2741d9082b80f82
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fb46c5f1c1e3f6bb7c21010fd2741d9082b80f82
Author: Hans Leidekker <hans at it.vu.nl>
Date: Fri Jan 12 13:13:10 2007 +0100
usp10: Initialise the caller supplied ABC structure in ScriptPlace.
Fixes a regression found by Lei Zhang.
---
dlls/usp10/usp10.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c
index 35cf0b2..4aab525 100644
--- a/dlls/usp10/usp10.c
+++ b/dlls/usp10/usp10.c
@@ -1244,6 +1244,8 @@ HRESULT WINAPI ScriptPlace(HDC hdc, SCRI
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 ))
{
More information about the wine-cvs
mailing list