Ignore:
Timestamp:
Jan 23, 2001, 12:59:45 PM (25 years ago)
Author:
sandervl
Message:

vio, thread exit fixes

File:
1 edited

Legend:

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

    r5011 r5016  
    1 /* $Id: HandleManager.cpp,v 1.60 2001-01-22 18:26:49 sandervl Exp $ */
     1/* $Id: HandleManager.cpp,v 1.61 2001-01-23 11:59:44 sandervl Exp $ */
    22
    33/*
     
    694694  return(TabWin32Handles[hHandle16].hmHandleData.hHMHandle);
    695695}
    696 
    697 
    698696
    699697/*****************************************************************************
     
    44644462  if (-1 == iIndexNewWrite)                         /* oops, no free handles ! */
    44654463  {
    4466     //free handle
    4467     TabWin32Handles[iIndexNewRead].hmHandleData.hHMHandle = INVALID_HANDLE_VALUE;
     4464    HMHandleFree(iIndexNewRead);
    44684465    SetLastError(ERROR_NOT_ENOUGH_MEMORY);      /* use this as error message */
    44694466    return 0;
     
    45114508  if (rc == 0)     /* oops, creation failed within the device handler */
    45124509  {
    4513       TabWin32Handles[iIndexNewRead].hmHandleData.hHMHandle = INVALID_HANDLE_VALUE;
    4514       TabWin32Handles[iIndexNewWrite].hmHandleData.hHMHandle = INVALID_HANDLE_VALUE;
    4515   return FALSE;                                           /* signal error */
     4510      HMHandleFree(iIndexNewRead);
     4511      HMHandleFree(iIndexNewWrite);
     4512      return FALSE;                                           /* signal error */
    45164513  }
    45174514
Note: See TracChangeset for help on using the changeset viewer.