Clone pidlLast before free'ing pidl after call to SHBindToParent.

This commit is contained in:
Michael Jung 2005-08-29 21:46:02 +00:00 committed by Alexandre Julliard
parent 3676640e64
commit da953161fd

View File

@ -386,6 +386,8 @@ DWORD WINAPI SHGetFileInfoW(LPCWSTR path,DWORD dwFileAttributes,
{
hr = SHBindToParent( pidl, &IID_IShellFolder, (LPVOID*)&psfParent,
(LPCITEMIDLIST*)&pidlLast );
if (SUCCEEDED(hr))
pidlLast = ILClone(pidlLast);
ILFree(pidl);
}
else