Module: wine Branch: master Commit: 1ee497ae2554e18ea8405128e986aa00a7d66568 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1ee497ae2554e18ea8405128e9...
Author: Aric Stewart aric@codeweavers.com Date: Fri May 7 10:38:56 2010 -0500
usp10/test: Initialize local structures.
---
dlls/usp10/tests/usp10.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/usp10/tests/usp10.c b/dlls/usp10/tests/usp10.c index 2d7641d..41c9035 100644 --- a/dlls/usp10/tests/usp10.c +++ b/dlls/usp10/tests/usp10.c @@ -1266,6 +1266,10 @@ static void test_ScriptStringXtoCP_CPtoX(HDC hdc) * Here we generate an SCRIPT_STRING_ANALYSIS that will be used as input to the * following character positions to X and X to character position functions. */ + memset(&Control, 0, sizeof(SCRIPT_CONTROL)); + memset(&State, 0, sizeof(SCRIPT_STATE)); + memset(&Tabdef, 0, sizeof(SCRIPT_TABDEF)); + hr = ScriptStringAnalyse( hdc, String, String_len, Glyphs, Charset, Flags, ReqWidth, &Control, &State, NULL, &Tabdef, &InClass, &ssa);