André Hentschel : shell32: Make sure that a structure is initialized (clang).

Alexandre Julliard julliard at winehq.org
Fri Jul 8 11:23:42 CDT 2011


Module: wine
Branch: master
Commit: 58a31ebea92086fa6370d6bf0a4edb45ba696098
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=58a31ebea92086fa6370d6bf0a4edb45ba696098

Author: André Hentschel <nerv at dawncrow.de>
Date:   Thu Jul  7 23:40:34 2011 +0200

shell32: Make sure that a structure is initialized (clang).

---

 dlls/shell32/brsfolder.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/shell32/brsfolder.c b/dlls/shell32/brsfolder.c
index 80b8ecd..0a780b9 100644
--- a/dlls/shell32/brsfolder.c
+++ b/dlls/shell32/brsfolder.c
@@ -852,7 +852,9 @@ static BOOL BrsFolder_OnSetExpanded(browse_info *info, LPVOID selection,
     LPCITEMIDLIST pidlCurrent, pidlRoot;
     TVITEMEXW item;
     BOOL bResult = FALSE;
-    
+
+    memset(&item, 0, sizeof(item));
+
     /* If 'selection' is a string, convert to a Shell ID List. */ 
     if (is_str) {
         IShellFolder *psfDesktop;
@@ -883,7 +885,6 @@ static BOOL BrsFolder_OnSetExpanded(browse_info *info, LPVOID selection,
         goto done;
 
     /* Initialize item to point to the first child of the root folder. */
-    memset(&item, 0, sizeof(item));
     item.mask = TVIF_PARAM;
     item.hItem = (HTREEITEM)SendMessageW(info->hwndTreeView, TVM_GETNEXTITEM, TVGN_ROOT, 0);
 




More information about the wine-cvs mailing list