Changeset 9e2478510012…
Parent af2e007ab035…
by
Changes to one file · Browse files at 9e2478510012 Showing diff from parent af2e007ab035 Diff from another changeset...
@@ -138,30 +138,26 @@ CShellExtOverlay::CShellExtOverlay(char tortoiseClass) :
myTortoiseClass(tortoiseClass)
{
- ThgCriticalSection cs(CShellExt::GetCriticalSection());
m_cRef = 0L;
- g_cRefThisDll++;
+ CShellExt::IncDllRef();
}
CShellExtCMenu::CShellExtCMenu(char dummy) :
m_ppszFileUserClickedOn(0)
{
- ThgCriticalSection cs(CShellExt::GetCriticalSection());
m_cRef = 0L;
- g_cRefThisDll++;
+ CShellExt::IncDllRef();
}
CShellExtOverlay::~CShellExtOverlay()
{
- ThgCriticalSection cs(CShellExt::GetCriticalSection());
- g_cRefThisDll--;
+ CShellExt::DecDllRef();
}
CShellExtCMenu::~CShellExtCMenu()
{
- ThgCriticalSection cs(CShellExt::GetCriticalSection());
- g_cRefThisDll--;
+ CShellExt::DecDllRef();
}
|
Loading...