[SHELL32] -CDesktopBrowser: Clone the pidl passed to SHOpenNewFrame as it will later free it itself. This was masked by a hacky cast.

svn path=/trunk/; revision=74379
This commit is contained in:
Giannis Adamopoulos 2017-04-19 16:24:59 +00:00
parent ef27450876
commit 5db681f766

View file

@ -285,7 +285,7 @@ HRESULT STDMETHODCALLTYPE CDesktopBrowser::BrowseObject(LPCITEMIDLIST pidl, UINT
*/
DWORD dwFlags = ((wFlags & SBSP_EXPLOREMODE) != 0) ? SH_EXPLORER_CMDLINE_FLAG_E : 0;
return SHOpenNewFrame((LPITEMIDLIST)pidl, NULL, 0, dwFlags);
return SHOpenNewFrame(ILClone(pidl), NULL, 0, dwFlags);
}
HRESULT STDMETHODCALLTYPE CDesktopBrowser::GetViewStateStream(DWORD grfMode, IStream **ppStrm)