Ignore:
Timestamp:
Jul 24, 1999, 2:38:58 PM (26 years ago)
Author:
sandervl
Message:

Extra check in CloseHandle

File:
1 edited

Legend:

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

    r278 r382  
    1 /* $Id: HandleManager.cpp,v 1.6 1999-07-06 15:48:45 phaller Exp $ */
     1/* $Id: HandleManager.cpp,v 1.7 1999-07-24 12:38:58 sandervl Exp $ */
    22
    33/*
     
    907907
    908908  pHMHandle = &TabWin32Handles[iIndex];               /* call device handler */
    909   fResult = pHMHandle->pDeviceHandler->CloseHandle(&pHMHandle->hmHandleData);
     909  //SvL: Check if pDeviceHandler is set
     910  if (pHMHandle->pDeviceHandler) {
     911        fResult = pHMHandle->pDeviceHandler->CloseHandle(&pHMHandle->hmHandleData);
     912  }
     913  else {
     914        dprintf(("HMCloseHAndle(%08xh): pDeviceHandler not set", hObject));
     915        fResult = TRUE;
     916  }
    910917
    911918  if (fResult == TRUE)                   /* remove handle if close succeeded */
Note: See TracChangeset for help on using the changeset viewer.