wrowe       2002/07/30 23:08:08

  Modified:    locks/win32 proc_mutex.c
  Log:
    Handle leaks right now are a huge problem.  Close two of them.
  
  Revision  Changes    Path
  1.10      +2 -6      apr/locks/win32/proc_mutex.c
  
  Index: proc_mutex.c
  ===================================================================
  RCS file: /home/cvs/apr/locks/win32/proc_mutex.c,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- proc_mutex.c      7 Jun 2002 14:04:34 -0000       1.9
  +++ proc_mutex.c      31 Jul 2002 06:08:08 -0000      1.10
  @@ -76,10 +76,6 @@
                                                   apr_pool_t *pool)
   {
       HANDLE hMutex;
  -    SECURITY_ATTRIBUTES sec;
  -    sec.nLength = sizeof(SECURITY_ATTRIBUTES);
  -    sec.lpSecurityDescriptor = NULL;
  -    sec.bInheritHandle = TRUE;
   
       /* With Win2000 Terminal Services, the Mutex name can have a 
        * "Global\" or "Local\" prefix to explicitly create the object 
  @@ -94,7 +90,7 @@
               fname = apr_pstrdup(pool, fname);
       }
   
  -    hMutex = CreateMutex(&sec, FALSE, fname);
  +    hMutex = CreateMutex(NULL, FALSE, fname);
       if (!hMutex) {
        return apr_get_os_error();
       }
  @@ -119,7 +115,7 @@
       else
           fname = apr_pstrdup(pool, fname);
   
  -    hMutex = OpenMutex(MUTEX_ALL_ACCESS, TRUE, fname);
  +    hMutex = OpenMutex(MUTEX_ALL_ACCESS, FALSE, fname);
       if (!hMutex) {
        return apr_get_os_error();
       }
  
  
  

Reply via email to