mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
Clone pidlLast before free'ing pidl after call to SHBindToParent.
This commit is contained in:
parent
3676640e64
commit
da953161fd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user