Index: TortoiseOverlays/ShellExt.h
===================================================================
--- TortoiseOverlays/ShellExt.h	(revision 21659)
+++ TortoiseOverlays/ShellExt.h	(working copy)
@@ -7,7 +7,6 @@
 #include "resource.h"
 
 extern  volatile LONG       g_cRefThisDll;          // Reference count of this DLL.
-extern  HINSTANCE           g_hmodThisDll;          // Instance handle for this DLL
 
 using namespace std;
 
Index: TortoiseOverlays/TortoiseOverlays.cpp
===================================================================
--- TortoiseOverlays/TortoiseOverlays.cpp	(revision 21659)
+++ TortoiseOverlays/TortoiseOverlays.cpp	(working copy)
@@ -6,9 +6,7 @@
 #include "ShellExtClassFactory.h"
 
 volatile LONG       g_cRefThisDll = 0;              ///< reference count of this DLL.
-HINSTANCE           g_hmodThisDll = NULL;           ///< handle to this DLL itself.
 
-
 #pragma comment(linker, "\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
 
 extern "C" int APIENTRY
@@ -24,12 +22,6 @@
         return FALSE;
     }
 #endif
-
-    if (dwReason == DLL_PROCESS_ATTACH)
-    {
-        // Extension DLL one-time initialization
-        g_hmodThisDll = hInstance;
-    }
     return 1;   // ok
 }
 
