Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9.1, 0.9.1.1, and 0.9.2

stable shellext: use CShellExt::IncDllRef and DecDllRef

from inside CShellExtCMenu and CShellExtOverlay constructors/destructors
instead of directly accessing the global g_cRefThisDll defined in ShellExt.cpp

Changeset 9e2478510012

Parent af2e007ab035

by Adrian Buehlmann

Changes to one file · Browse files at 9e2478510012 Showing diff from parent af2e007ab035 Diff from another changeset...

 
138
139
140
141
142
143
 
144
145
146
147
148
149
150
151
 
152
153
154
155
156
157
158
 
159
160
161
162
163
164
 
165
166
167
 
138
139
140
 
141
 
142
143
144
145
146
147
 
148
 
149
150
151
152
153
154
 
 
155
156
157
158
159
 
 
160
161
162
163
@@ -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();  }