From: Jeffrey Altman Date: Mon, 18 Dec 2006 23:56:19 +0000 (+0000) Subject: windows-afslogon-20061218 X-Git-Tag: BP-openafs-windows-kdfs-ifs~913 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=8a1debde84c7bacb103bb1a9c3d82a1f352f441f;p=packages%2Fo%2Fopenafs.git windows-afslogon-20061218 test for the existence of the mutex and not the bInit flag during the DLL attach --- diff --git a/src/WINNT/afsd/afslogon.c b/src/WINNT/afsd/afslogon.c index aec8863fc..f90a47266 100644 --- a/src/WINNT/afsd/afslogon.c +++ b/src/WINNT/afsd/afslogon.c @@ -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: