Changeset 7458 for trunk/src/kernel32/hmcomm.cpp
- Timestamp:
- Nov 26, 2001, 6:16:24 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/hmcomm.cpp
r7457 r7458 1 /* $Id: hmcomm.cpp,v 1.1 4 2001-11-26 14:53:59sandervl Exp $ */1 /* $Id: hmcomm.cpp,v 1.15 2001-11-26 17:16:24 sandervl Exp $ */ 2 2 3 3 /* … … 10 10 * 11 11 * TODO: Overlapped IO only supports one request at a time 12 * TODO: Overlapped IO not thread safe 12 13 * 13 14 */ … … 572 573 else break; 573 574 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 574 588 DosSleep(TIMEOUT_COMM); 575 589 } … … 656 670 else *lpfdwEvtMask = 0; 657 671 672 SetLastError(rc); 658 673 return (rc==0); 659 674 }
Note:
See TracChangeset
for help on using the changeset viewer.