Author: gadamopoulos
Date: Wed Apr 19 16:24:59 2017
New Revision: 74379
URL:
http://svn.reactos.org/svn/reactos?rev=74379&view=rev
Log:
[SHELL32] -CDesktopBrowser: Clone the pidl passed to SHOpenNewFrame as it will later free
it itself. This was masked by a hacky cast.
Modified:
trunk/reactos/dll/win32/shell32/shelldesktop/CDesktopBrowser.cpp
Modified: trunk/reactos/dll/win32/shell32/shelldesktop/CDesktopBrowser.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shelldes…
==============================================================================
--- trunk/reactos/dll/win32/shell32/shelldesktop/CDesktopBrowser.cpp [iso-8859-1]
(original)
+++ trunk/reactos/dll/win32/shell32/shelldesktop/CDesktopBrowser.cpp [iso-8859-1] Wed Apr
19 16:24:59 2017
@@ -285,7 +285,7 @@
*/
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)