hhctrl.ocx: Initialize x and y to 0 (to silence "may be used uninitialized" warnings)

Elton Chung elton328 at gmail.com
Fri Oct 7 23:23:40 CDT 2011


Regards,
Elton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20111008/dd270984/attachment-0001.html>
-------------- next part --------------
From 416d7ebca2b7b34dbbbc8863ce3de5b3ad60dc08 Mon Sep 17 00:00:00 2001
From: Amine Khaldi <amine.khaldi at reactos.org>
Date: Sat, 8 Oct 2011 12:12:43 +0800
Subject: hhctrl.ocx: Initialize x and y to 0 (to silence "may be used
 uninitialized" warnings)

---
 dlls/hhctrl.ocx/help.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/hhctrl.ocx/help.c b/dlls/hhctrl.ocx/help.c
index fb9ea08..38bd737 100644
--- a/dlls/hhctrl.ocx/help.c
+++ b/dlls/hhctrl.ocx/help.c
@@ -1443,7 +1443,7 @@ static BOOL HH_CreateHelpWindow(HHInfo *info)
     RECT winPos = info->WinType.rcWindowPos;
     WNDCLASSEXW wcex;
     DWORD dwStyles, dwExStyles;
-    DWORD x, y, width = 0, height = 0;
+    DWORD x = 0, y = 0, width = 0, height = 0;
     LPCWSTR caption;
 
     static const WCHAR windowClassW[] = {
-- 
1.7.6.msysgit.0


More information about the wine-patches mailing list