diff --git a/src/WINNT/afsd/afsd_init.c b/src/WINNT/afsd/afsd_init.c index 2f040a9dc2..c83b548b8a 100644 --- a/src/WINNT/afsd/afsd_init.c +++ b/src/WINNT/afsd/afsd_init.c @@ -561,6 +561,7 @@ int afsd_InitCM(char **reasonP) char buf[1024]; HKEY parmKey; DWORD dummyLen; + DWORD dwValue; DWORD regType; long code; /*int freelanceEnabled;*/ diff --git a/src/WINNT/afsd/afslogon.c b/src/WINNT/afsd/afslogon.c index 1446b60854..459d5e8c7f 100644 --- a/src/WINNT/afsd/afslogon.c +++ b/src/WINNT/afsd/afslogon.c @@ -80,9 +80,7 @@ BOOLEAN APIENTRY DllEntryPoint(HANDLE dll, DWORD reason, PVOID reserved) switch (reason) { case DLL_PROCESS_ATTACH: /* Initialization Mutex */ - if (!bInitMutex) { - hInitMutex = CreateMutex(NULL, FALSE, NULL); - } + hInitMutex = CreateMutex(NULL, FALSE, NULL); WSAStartup( MAKEWORD(2,2), &wsaData ); break;