Ignore:
Timestamp:
Jun 17, 1999, 11:52:01 PM (26 years ago)
Author:
phaller
Message:

Fix: preparing support for HandleManager on kernel objects

File:
1 edited

Legend:

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

    r111 r114  
    1 /* $Id: HandleManager.cpp,v 1.3 1999-06-17 18:21:35 phaller Exp $ */
     1/* $Id: HandleManager.cpp,v 1.4 1999-06-17 21:52:00 phaller Exp $ */
    22
    33/*
     
    894894  if (-1 == iIndex)                                               /* error ? */
    895895  {
    896     SetLastError(ERROR_INVALID_HANDLE);       /* set win32 error information */
    897     return (FALSE);                                        /* signal failure */
     896    //@@@PH it may occur someone closes e.g. a semaphore handle
     897    // which is not registered through the HandleManager yet.
     898    // so we try to pass on to Open32 instead.
     899    dprintf(("KERNEL32: HandleManager:HMCloseHandle(%08xh) passed on to Open32.\n",
     900             hObject));
     901
     902    fResult = O32_CloseHandle(hObject);
     903    return (fResult);
     904
     905    //SetLastError(ERROR_INVALID_HANDLE);       /* set win32 error information */
     906    //return (FALSE);                                        /* signal failure */
    898907  }
    899908
Note: See TracChangeset for help on using the changeset viewer.