Ignore:
Timestamp:
Aug 25, 2001, 12:38:50 PM (24 years ago)
Author:
sandervl
Message:

Set last error to ERROR_ALREADY_EXISTS when CreateMutex, CreateEvent or CreateSemaphore is called with existing semaphore name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/HandleManager.cpp

    r6086 r6584  
    1 /* $Id: HandleManager.cpp,v 1.69 2001-06-23 19:43:49 sandervl Exp $ */
     1/* $Id: HandleManager.cpp,v 1.70 2001-08-25 10:38:50 sandervl Exp $ */
    22
    33/*
     
    22382238      if(handle) {
    22392239          dprintf(("CreateEvent: return handle of existing event semaphore %x", handle));
     2240          SetLastError(ERROR_ALREADY_EXISTS);
    22402241          return handle;
    22412242      }
     
    23142315      if(handle) {
    23152316          dprintf(("CreateMutex: return handle of existing mutex semaphore %x", handle));
     2317          SetLastError(ERROR_ALREADY_EXISTS);
    23162318          return handle;
    23172319      }
     
    25252527      if(handle) {
    25262528          dprintf(("CreateSemaphore: return handle of existing semaphore %x", handle));
     2529          SetLastError(ERROR_ALREADY_EXISTS);
    25272530          return handle;
    25282531      }
     
    30263029  PHMHANDLE pHMHandle;       /* pointer to the handle structure in the table */
    30273030
     3031
     3032  if(dwWakeMask == 0) {
     3033      dprintf(("WARNING: wakemask == 0 -> calling WaitForMultipleObjects"));
     3034      return HMWaitForMultipleObjects(cObjects, lphObjects, fWaitAll, dwTimeout);
     3035  }
    30283036                                                          /* validate handle */
    30293037  iIndex = _HMHandleQuery(*lphObjects);                   /* get the index */
Note: See TracChangeset for help on using the changeset viewer.