[SHELL32]

- Also make My Computer a singleton, as shown by the CMyComputer test. With r68210 and this commit, SHFileOperation on a large number of files is approximately 3 times as fast.
CORE-9839 #resolve

svn path=/trunk/; revision=68212
This commit is contained in:
Thomas Faber 2015-06-20 17:52:28 +00:00
parent 1fd75ca0e4
commit cf0e32066c
3 changed files with 3 additions and 1 deletions

View file

@ -161,6 +161,7 @@ CDrivesFolder::CDrivesFolder()
CDrivesFolder::~CDrivesFolder()
{
TRACE ("-- destroying IShellFolder(%p)\n", this);
ASSERT(_CreatorClass::IsTerminated());
SHFree(pidlRoot);
}

View file

@ -69,7 +69,7 @@ class CDrivesFolder :
virtual HRESULT WINAPI GetCurFolder(LPITEMIDLIST * pidl);
DECLARE_REGISTRY_RESOURCEID(IDR_MYCOMPUTER)
DECLARE_NOT_AGGREGATABLE(CDrivesFolder)
DECLARE_SINGLETON_NOT_AGGREGATABLE(CDrivesFolder)
DECLARE_PROTECT_FINAL_CONSTRUCT()

View file

@ -151,6 +151,7 @@ class CShell32Module : public CComModule
public:
void Term()
{
CComCreatorSingleton< ATL::CComObject< CDrivesFolder > >::Term();
CComCreatorSingleton< ATL::CComObject< CDesktopFolder > >::Term();
CComModule::Term();
}