shell32: Set pointer to NULL after free to avoid double free.

This commit is contained in:
Michael Mc Donnell 2011-10-19 15:11:32 -04:00 committed by Alexandre Julliard
parent 271c6a6c5f
commit 26f3c14d6b
1 changed files with 1 additions and 0 deletions

View File

@ -2440,6 +2440,7 @@ static HRESULT WINAPI UnixSubFolderIterator_IEnumIDList_Next(IEnumIDList* iface,
!UNIXFS_is_pidl_of_type(rgelt[i], This->m_fFilter)) !UNIXFS_is_pidl_of_type(rgelt[i], This->m_fFilter))
{ {
SHFree(rgelt[i]); SHFree(rgelt[i]);
rgelt[i] = NULL;
continue; continue;
} }
memset(((PBYTE)rgelt[i])+rgelt[i]->mkid.cb, 0, sizeof(USHORT)); memset(((PBYTE)rgelt[i])+rgelt[i]->mkid.cb, 0, sizeof(USHORT));