[BROWSEUI] Remove refactoring leftovers

This commit is contained in:
Mark Jansen 2020-09-13 14:29:17 +02:00
parent 5bb36e92c5
commit 7b17d8d900

View file

@ -913,7 +913,6 @@ long IEGetNameAndFlags(LPITEMIDLIST pidl, SHGDNF uFlags, LPWSTR pszBuf, UINT cch
HRESULT CShellBrowser::BrowseToPath(IShellFolder *newShellFolder, HRESULT CShellBrowser::BrowseToPath(IShellFolder *newShellFolder,
LPCITEMIDLIST absolutePIDL, FOLDERSETTINGS *folderSettings, long flags) LPCITEMIDLIST absolutePIDL, FOLDERSETTINGS *folderSettings, long flags)
{ {
CComPtr<IObjectWithSite> objectWithSite;
CComPtr<IShellFolder> saveCurrentShellFolder; CComPtr<IShellFolder> saveCurrentShellFolder;
CComPtr<IShellView> saveCurrentShellView; CComPtr<IShellView> saveCurrentShellView;
CComPtr<IShellView> newShellView; CComPtr<IShellView> newShellView;
@ -989,9 +988,6 @@ HRESULT CShellBrowser::BrowseToPath(IShellFolder *newShellFolder,
return hResult; return hResult;
} }
if (objectWithSite.p != NULL)
hResult = objectWithSite->SetSite(NULL);
// update current pidl // update current pidl
ILFree(fCurrentDirectoryPIDL); ILFree(fCurrentDirectoryPIDL);
fCurrentDirectoryPIDL = ILClone(absolutePIDL); fCurrentDirectoryPIDL = ILClone(absolutePIDL);