Nikolay Sivov : uxtheme: Properly initialize text drawing options.

Alexandre Julliard julliard at winehq.org
Wed Feb 14 15:12:09 CST 2018


Module: wine
Branch: master
Commit: ce50a7ff4df919aedd037cecf15c484c14f10d41
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=ce50a7ff4df919aedd037cecf15c484c14f10d41

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Wed Feb 14 08:39:21 2018 +0300

uxtheme: Properly initialize text drawing options.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 e917dd1..d07d075 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);




More information about the wine-cvs mailing list