mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
[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:
parent
1fd75ca0e4
commit
cf0e32066c
3 changed files with 3 additions and 1 deletions
|
@ -161,6 +161,7 @@ CDrivesFolder::CDrivesFolder()
|
|||
CDrivesFolder::~CDrivesFolder()
|
||||
{
|
||||
TRACE ("-- destroying IShellFolder(%p)\n", this);
|
||||
ASSERT(_CreatorClass::IsTerminated());
|
||||
SHFree(pidlRoot);
|
||||
}
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -151,6 +151,7 @@ class CShell32Module : public CComModule
|
|||
public:
|
||||
void Term()
|
||||
{
|
||||
CComCreatorSingleton< ATL::CComObject< CDrivesFolder > >::Term();
|
||||
CComCreatorSingleton< ATL::CComObject< CDesktopFolder > >::Term();
|
||||
CComModule::Term();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue