user32: Initialize string buffer
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Mon Nov 12 02:33:13 CST 2012
Hi,
Should fix http://bugs.winehq.org/show_bug.cgi?id=28797
Changelog:
user32: Initialize string buffer
Best Regards
Alistair Leslie-Hughes
-------------- next part --------------
>From e6cb102923e2d8669b5a5f3c80eaae5961b01143 Mon Sep 17 00:00:00 2001
From: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Mon, 12 Nov 2012 14:37:37 +1100
Subject: [PATCH] Initial string buffer.
To: wine-patches <wine-patches at winehq.org>
---
dlls/user32/nonclient.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/user32/nonclient.c b/dlls/user32/nonclient.c
index bc7fcc0..9cdc6aa 100644
--- a/dlls/user32/nonclient.c
+++ b/dlls/user32/nonclient.c
@@ -902,7 +902,7 @@ static void NC_DrawCaption( HDC hdc, RECT *rect, HWND hwnd, DWORD style,
DWORD exStyle, BOOL active )
{
RECT r = *rect;
- WCHAR buffer[256];
+ WCHAR buffer[256] = {0};
HPEN hPrevPen;
HMENU hSysMenu;
BOOL gradient = FALSE;
--
1.7.9.5
More information about the wine-patches
mailing list