Ignore:
Timestamp:
Nov 26, 2001, 6:16:24 PM (24 years ago)
Author:
sandervl
Message:

updates

File:
1 edited

Legend:

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

    r7457 r7458  
    1 /* $Id: hmcomm.cpp,v 1.14 2001-11-26 14:53:59 sandervl Exp $ */
     1/* $Id: hmcomm.cpp,v 1.15 2001-11-26 17:16:24 sandervl Exp $ */
    22
    33/*
     
    1010 *
    1111 * TODO: Overlapped IO only supports one request at a time
     12 * TODO: Overlapped IO not thread safe
    1213 *
    1314 */
     
    572573          else break;
    573574
     575          //validate handle first
     576          pHMHandleData = HMQueryHandleData(hComm);
     577          if(!pHMHandleData) {
     578              dprintf(("!ERROR!: Invalid handle -> aborting"));
     579              return 0;
     580          }
     581
     582          if(pDevData->fClosing) {
     583              dprintf(("Cleaning up async comm thread"));
     584              SetEvent(hEvent); //signal to CloseHandle that we're done
     585              return 0;
     586          }
     587
    574588          DosSleep(TIMEOUT_COMM);
    575589      }
     
    656670  else  *lpfdwEvtMask = 0;
    657671
     672  SetLastError(rc);
    658673  return (rc==0);
    659674}
Note: See TracChangeset for help on using the changeset viewer.