]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
windows-afslogon-20061218
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 18 Dec 2006 23:56:19 +0000 (23:56 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 18 Dec 2006 23:56:19 +0000 (23:56 +0000)
test for the existence of the mutex and not the bInit flag
during the DLL attach

src/WINNT/afsd/afslogon.c

index aec8863fc54248aa2c3d9026fdd4daef9d298be8..f90a47266cca2de5c93541ed6aed686747c04575 100644 (file)
@@ -78,9 +78,8 @@ BOOLEAN APIENTRY DllEntryPoint(HANDLE dll, DWORD reason, PVOID reserved)
     switch (reason) {
     case DLL_PROCESS_ATTACH:
         /* Initialization Mutex */
-       if (!bInit) {
+       if (!hInitMutex)
            hInitMutex = CreateMutex(NULL, FALSE, NULL);
-       }
         break;
 
     case DLL_PROCESS_DETACH: