[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,
LPCITEMIDLIST absolutePIDL, FOLDERSETTINGS *folderSettings, long flags)
{
CComPtr<IObjectWithSite> objectWithSite;
CComPtr<IShellFolder> saveCurrentShellFolder;
CComPtr<IShellView> saveCurrentShellView;
CComPtr<IShellView> newShellView;
@ -989,9 +988,6 @@ HRESULT CShellBrowser::BrowseToPath(IShellFolder *newShellFolder,
return hResult;
}
if (objectWithSite.p != NULL)
hResult = objectWithSite->SetSite(NULL);
// update current pidl
ILFree(fCurrentDirectoryPIDL);
fCurrentDirectoryPIDL = ILClone(absolutePIDL);