[PATCH] winex11drv: Fix uninitialized memory access appearing in multiple tests (Valgrind)

Indrek Altpere efbiaiinzinz at hotmail.com
Tue May 19 01:29:33 CDT 2015


Should fix https://bugs.winehq.org/show_bug.cgi?id=38593

---
 dlls/winex11.drv/window.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index 06e2294..de39a44 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -701,6 +701,7 @@ static void set_size_hints( struct x11drv_win_data
*data, DWORD style )
 static void set_mwm_hints( struct x11drv_win_data *data, DWORD style, DWORD
ex_style )
 {
     MwmHints mwm_hints;
+    memset(&mwm_hints, 0, sizeof(mwm_hints));
 
     if (data->hwnd == GetDesktopWindow())
     {
-- 
1.9.5.msysgit.0




More information about the wine-patches mailing list