Changeset 6079 for trunk/src


Ignore:
Timestamp:
Jun 23, 2001, 9:45:43 AM (24 years ago)
Author:
sandervl
Message:

compile fixes

Location:
trunk/src/kernel32
Files:
2 edited

Legend:

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

    r6069 r6079  
    1 /* $Id: HandleManager.cpp,v 1.66 2001-06-22 19:40:27 sandervl Exp $ */
     1/* $Id: HandleManager.cpp,v 1.67 2001-06-23 07:45:42 sandervl Exp $ */
    22
    33/*
     
    30253025  ULONG   ulIndex;
    30263026  PHANDLE pArrayOfHandles;
    3027   PHANDLE pLoop1 = pHandles;
     3027  PHANDLE pLoop1 = lphObjects;
    30283028  PHANDLE pLoop2;
    30293029  DWORD   rc;
    30303030
    30313031  // allocate array for handle table
    3032   pArrayOfHandles = (PHANDLE)alloca(nCount * sizeof(HANDLE));
     3032  pArrayOfHandles = (PHANDLE)alloca(cObjects * sizeof(HANDLE));
    30333033  if (pArrayOfHandles == NULL)
    30343034  {
    3035   dprintf(("ERROR: HMMsgWaitForMultipleObjects: alloca failed to allocate %d handles", nCount));
     3035      dprintf(("ERROR: HMMsgWaitForMultipleObjects: alloca failed to allocate %d handles", cObjects));
    30363036      O32_SetLastError(ERROR_NOT_ENOUGH_MEMORY);
    30373037      return WAIT_FAILED;
     
    30433043  for (ulIndex = 0;
    30443044
    3045        ulIndex < nCount;
     3045       ulIndex < cObjects;
    30463046
    30473047       ulIndex++,
     
    30683068  // @@@PH: Note this will fail on handles that do NOT belong to Open32
    30693069  //        but to i.e. the console subsystem!
    3070   rc = O32_MsgWaitForMultipleObjects(nCount,
     3070  rc = O32_MsgWaitForMultipleObjects(cObjects,
    30713071                                     pArrayOfHandles,
    3072                                      fWaitAll, dwMilliseconds,
     3072                                     fWaitAll, dwTimeout,
    30733073                                     dwWakeMask);
    30743074
  • trunk/src/kernel32/hmsemaphore.cpp

    r6069 r6079  
    1 /* $Id: hmsemaphore.cpp,v 1.6 2001-06-22 19:40:28 sandervl Exp $ */
     1/* $Id: hmsemaphore.cpp,v 1.7 2001-06-23 07:45:43 sandervl Exp $ */
    22
    33/*
     
    6060                                /* waiter and auto-reset the semaphore when*/
    6161                                /* there are multiple waiters.             */
    62 #endif
    63 
     62
     63#endif
     64
     65#ifdef USE_OS2SEMAPHORES
    6466typedef struct {
    6567    LONG currentCount;
     
    6870    HEV  hev;
    6971} SEM_INFO, *PSEM_INFO;
     72#endif
    7073
    7174/*****************************************************************************
Note: See TracChangeset for help on using the changeset viewer.