]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-windows-shell-ext-prevent-unload-hack-20051002
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sun, 2 Oct 2005 15:47:20 +0000 (15:47 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sun, 2 Oct 2005 15:47:20 +0000 (15:47 +0000)
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)

src/WINNT/client_exp/afs_shl_ext.cpp

index 6c4d9c81128033be0eb2e5a8df1096a93d6fc845..bc4d09e20e98be38e65a7995f6b823ffd4a5c664 100644 (file)
@@ -84,9 +84,16 @@ STDAPI DllCanUnloadNow(void)
 {
        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;
 }