mirror of
https://github.com/reactos/reactos.git
synced 2025-07-29 02:42:21 +00:00
[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:
parent
ef27450876
commit
5db681f766
1 changed files with 1 additions and 1 deletions
|
@ -285,7 +285,7 @@ HRESULT STDMETHODCALLTYPE CDesktopBrowser::BrowseObject(LPCITEMIDLIST pidl, UINT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
DWORD dwFlags = ((wFlags & SBSP_EXPLOREMODE) != 0) ? SH_EXPLORER_CMDLINE_FLAG_E : 0;
|
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)
|
HRESULT STDMETHODCALLTYPE CDesktopBrowser::GetViewStateStream(DWORD grfMode, IStream **ppStrm)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue