The shell extension is unloading as it should but is never being loaded
again. Since we have no clue why and no idea how to debug it, for now,
just prevent it from being unloaded in the first place.
(cherry picked from commit
f8bdf475e2260f8c8d70a4ddc053ef3ec086a416)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
+#ifdef COMMENT
+ // This test is correct and we really do want to allow the extension to be loaded and
+ // unloaded as needed. Unfortunately, the extension is being unloaded and never loaded
+ // again which is disconcerting for many folks. For now we will prevent the unloading
+ // until someone has time to figure out how to debug this.
+ // Jeffrey Altman - 2 Oct 2005
+
if (!nCMRefCount && !nSERefCount && !nICRefCount && !nTPRefCount && !nXPRefCount)
return S_OK;
-
+#endif
return S_FALSE;
}