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

This commit is contained in:
André Hentschel 2011-07-07 23:40:34 +02:00 committed by Alexandre Julliard
parent fda2fc7684
commit 58a31ebea9
1 changed files with 3 additions and 2 deletions

View File

@ -853,6 +853,8 @@ static BOOL BrsFolder_OnSetExpanded(browse_info *info, LPVOID selection,
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);