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

compile fixes

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.