[PATCH] uxtheme: Properly initialize text drawing options

Nikolay Sivov nsivov at codeweavers.com
Tue Feb 13 23:39:21 CST 2018


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---

See https://bugs.winehq.org/show_bug.cgi?id=44512

 dlls/uxtheme/draw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/uxtheme/draw.c b/dlls/uxtheme/draw.c
index e917dd1b27..d07d0753da 100644
--- a/dlls/uxtheme/draw.c
+++ b/dlls/uxtheme/draw.c
@@ -1636,7 +1636,7 @@ HRESULT WINAPI DrawThemeText(HTHEME hTheme, HDC hdc, int iPartId, int iStateId,
                              LPCWSTR pszText, int iCharCount, DWORD flags,
                              DWORD flags2, const RECT *pRect)
 {
-    DTTOPTS opts;
+    DTTOPTS opts = { 0 };
     RECT rt;
 
     TRACE("%d %d\n", iPartId, iStateId);
-- 
2.15.1




More information about the wine-devel mailing list