From 8b9ebc30c90ba065b4d08c76feaaffdb9d6d818c Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Mon, 13 Oct 2008 08:30:55 -0500 Subject: [PATCH] user32: In DrawTextW/A make sure to properly initialize the cbSize of DRAWTEXTPARAMS. --- dlls/user32/text.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/user32/text.c b/dlls/user32/text.c index da3444de5fe..b28bd711bb7 100644 --- a/dlls/user32/text.c +++ b/dlls/user32/text.c @@ -1081,6 +1081,7 @@ INT WINAPI DrawTextW( HDC hdc, LPCWSTR str, INT count, LPRECT rect, UINT flags ) DRAWTEXTPARAMS dtp; memset (&dtp, 0, sizeof(dtp)); + dtp.cbSize = sizeof(dtp); if (flags & DT_TABSTOP) { dtp.iTabLength = (flags >> 8) & 0xff; @@ -1097,6 +1098,7 @@ INT WINAPI DrawTextA( HDC hdc, LPCSTR str, INT count, LPRECT rect, UINT flags ) DRAWTEXTPARAMS dtp; memset (&dtp, 0, sizeof(dtp)); + dtp.cbSize = sizeof(dtp); if (flags & DT_TABSTOP) { dtp.iTabLength = (flags >> 8) & 0xff;