Commit 58a31ebe authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

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

parent fda2fc76
...@@ -852,7 +852,9 @@ static BOOL BrsFolder_OnSetExpanded(browse_info *info, LPVOID selection, ...@@ -852,7 +852,9 @@ static BOOL BrsFolder_OnSetExpanded(browse_info *info, LPVOID selection,
LPCITEMIDLIST pidlCurrent, pidlRoot; LPCITEMIDLIST pidlCurrent, pidlRoot;
TVITEMEXW item; TVITEMEXW item;
BOOL bResult = FALSE; BOOL bResult = FALSE;
memset(&item, 0, sizeof(item));
/* If 'selection' is a string, convert to a Shell ID List. */ /* If 'selection' is a string, convert to a Shell ID List. */
if (is_str) { if (is_str) {
IShellFolder *psfDesktop; IShellFolder *psfDesktop;
...@@ -883,7 +885,6 @@ static BOOL BrsFolder_OnSetExpanded(browse_info *info, LPVOID selection, ...@@ -883,7 +885,6 @@ static BOOL BrsFolder_OnSetExpanded(browse_info *info, LPVOID selection,
goto done; goto done;
/* Initialize item to point to the first child of the root folder. */ /* Initialize item to point to the first child of the root folder. */
memset(&item, 0, sizeof(item));
item.mask = TVIF_PARAM; item.mask = TVIF_PARAM;
item.hItem = (HTREEITEM)SendMessageW(info->hwndTreeView, TVM_GETNEXTITEM, TVGN_ROOT, 0); item.hItem = (HTREEITEM)SendMessageW(info->hwndTreeView, TVM_GETNEXTITEM, TVGN_ROOT, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment