Ignore:
Timestamp:
Jun 23, 2001, 6:59:28 PM (24 years ago)
Author:
sandervl
Message:

semaphore updates

File:
1 edited

Legend:

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

    r6079 r6084  
    1 /* $Id: HandleManager.cpp,v 1.67 2001-06-23 07:45:42 sandervl Exp $ */
     1/* $Id: HandleManager.cpp,v 1.68 2001-06-23 16:59:26 sandervl Exp $ */
    22
    33/*
     
    609609  return (NO_ERROR);
    610610}
    611 
     611//*****************************************************************************
     612//*****************************************************************************
     613PHMHANDLEDATA HMQueryHandleData(HANDLE handle)
     614{
     615  int iIndex;
     616
     617  iIndex = _HMHandleQuery(handle);                   /* get the index */
     618  if (-1 == iIndex)                                  /* error ? */
     619  {
     620      return NULL;
     621  }
     622  return &TabWin32Handles[iIndex].hmHandleData;      /* call device handler */
     623}
    612624
    613625/*****************************************************************************
     
    28832895      return HMWaitForSingleObject(*lphObjects, dwTimeout);
    28842896  }
     2897
     2898  if(cObjects > MAXIMUM_WAIT_OBJECTS) {
     2899      dprintf(("KERNEL32: HMWaitForMultipleObjects: Too many objects (%d)", cObjects));
     2900      SetLastError(ERROR_INVALID_PARAMETER);
     2901      return WAIT_FAILED;
     2902  }
     2903
    28852904                                                          /* validate handle */
    28862905  iIndex = _HMHandleQuery(*lphObjects);                   /* get the index */
     
    30143033      dprintf(("WANRING: HMWaitForMultipleObjects: unknown handle passed on to Open32 -> will not work if other handles are semaphores"));
    30153034      return O32_MsgWaitForMultipleObjects(cObjects, lphObjects, fWaitAll, dwTimeout, dwWakeMask);
     3035  }
     3036
     3037  if(cObjects > MAXIMUM_WAIT_OBJECTS) {
     3038      dprintf(("KERNEL32: HMMsgWaitForMultipleObjects: Too many objects (%d)", cObjects));
     3039      SetLastError(ERROR_INVALID_PARAMETER);
     3040      return WAIT_FAILED;
    30163041  }
    30173042
Note: See TracChangeset for help on using the changeset viewer.