Ignore:
Timestamp:
Dec 29, 1999, 2:04:52 PM (26 years ago)
Author:
phaller
Message:

Add: debug info in HMWaitForMultipleObjects

File:
1 edited

Legend:

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

    r2129 r2249  
    1 /* $Id: HandleManager.cpp,v 1.31 1999-12-18 21:45:53 sandervl Exp $ */
     1/* $Id: HandleManager.cpp,v 1.32 1999-12-29 13:04:52 phaller Exp $ */
    22
    33/*
     
    25212521  if (pArrayOfHandles == NULL)
    25222522  {
    2523         dprintf(("ERROR: HMWaitForMultipleObjects: alloca failed to allocate %d handles", cObjects));
    2524         O32_SetLastError(ERROR_NOT_ENOUGH_MEMORY);
    2525         return WAIT_FAILED;
    2526   }
    2527   else  pLoop2 = pArrayOfHandles;
     2523    dprintf(("ERROR: HMWaitForMultipleObjects: alloca failed to allocate %d handles", cObjects));
     2524    O32_SetLastError(ERROR_NOT_ENOUGH_MEMORY);
     2525    return WAIT_FAILED;
     2526  }
     2527  else
     2528    pLoop2 = pArrayOfHandles;
    25282529
    25292530  // convert array to odin handles
     
    25392540                                 pLoop2);
    25402541
     2542    dprintf(("KERNEL32: HMWaitForMultipleObjects: handle %3i: ODIN-%08xh, Open32-%08xh\n",
     2543             ulIndex,
     2544             *pLoop1,
     2545             *pLoop2));
     2546
     2547    //  @@@PH to imlpement: check handle type!
     2548
    25412549    if (rc != NO_ERROR)
    25422550    {
     2551      dprintf(("KERNEL32: HMWaitForMultipleObjects - ERROR: handle %08xh is NOT an Open32 handle (not yet implemented)\n",
     2552               *pLoop1));
     2553
    25432554      O32_SetLastError(ERROR_INVALID_HANDLE);
    25442555      return (WAIT_FAILED);
Note: See TracChangeset for help on using the changeset viewer.