Commit 26f3c14d authored by Michael Mc Donnell's avatar Michael Mc Donnell Committed by Alexandre Julliard

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

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