Ignore:
Timestamp:
Mar 19, 2001, 8:27:14 PM (24 years ago)
Author:
sandervl
Message:

pe loader fix (graceful failure when unable to find dll) + several small changes

File:
1 edited

Legend:

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

    r4407 r5332  
    1 /* $Id: hmopen32.cpp,v 1.27 2000-10-03 17:28:30 sandervl Exp $ */
     1/* $Id: hmopen32.cpp,v 1.28 2001-03-19 19:27:13 sandervl Exp $ */
    22
    33/*
     
    199199                                               DWORD         dwTimeout)
    200200{
    201  DWORD rc, starttime, endtime;
    202 
    203   dprintfl(("KERNEL32: HandleManager::Open32::WaitForSingleObject(%08xh,%08h)\n",
     201 DWORD rc;
     202#ifdef DEBUG
     203 DWORD starttime, endtime;
     204#endif
     205
     206  dprintfl(("KERNEL32: HandleManager::Open32::WaitForSingleObject(%08xh %08xh)\n",
    204207            pHMHandleData->hHMHandle,
    205208            dwTimeout));
    206209
     210#ifdef DEBUG
    207211  if(dwTimeout) {
    208     starttime = O32_GetCurrentTime();
     212       starttime = O32_GetCurrentTime();
    209213  }
     214#endif
    210215  rc =  (O32_WaitForSingleObject(pHMHandleData->hHMHandle,
    211216                                 dwTimeout));
     217#ifdef DEBUG
    212218  if(dwTimeout) {
    213     endtime = O32_GetCurrentTime();
    214     dprintf(("KERNEL32: HandleManager::WaitForSingleObject %x delta = %x (rc=%x)", pHMHandleData->hHMHandle, endtime - starttime, rc));
     219       endtime = O32_GetCurrentTime();
     220       dprintf2(("KERNEL32: HandleManager::WaitForSingleObject %x %x delta = %x (rc=%x)", pHMHandleData->hHMHandle, dwTimeout, endtime - starttime, rc));
    215221  }
    216   else dprintf(("KERNEL32: HandleManager::WaitForSingleObject %x rc=%x", pHMHandleData->hHMHandle, rc));
     222  else dprintf2(("KERNEL32: HandleManager::WaitForSingleObject %x 0 rc=%x", pHMHandleData->hHMHandle, rc));
     223#endif
    217224  return rc;
    218225}
Note: See TracChangeset for help on using the changeset viewer.