diff --git a/dll/win32/browseui/shellbrowser.cpp b/dll/win32/browseui/shellbrowser.cpp index dc83e60db98..8ef99aae6f0 100644 --- a/dll/win32/browseui/shellbrowser.cpp +++ b/dll/win32/browseui/shellbrowser.cpp @@ -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 objectWithSite; CComPtr saveCurrentShellFolder; CComPtr saveCurrentShellView; CComPtr 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);