Changeset 4924 for trunk/src/kernel32/hmcomm.cpp
- Timestamp:
- Jan 10, 2001, 9:38:51 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/hmcomm.cpp
r4862 r4924 1 /* $Id: hmcomm.cpp,v 1. 7 2000-12-31 12:28:53sandervl Exp $ */1 /* $Id: hmcomm.cpp,v 1.8 2001-01-10 20:38:51 sandervl Exp $ */ 2 2 3 3 /* … … 679 679 lpOverlapped)); 680 680 681 APIRET rc;681 BOOL ret; 682 682 ULONG ulBytesWritten; 683 683 … … 691 691 } 692 692 693 r c= OSLibDosWrite(pHMHandleData->hHMHandle, (LPVOID)lpBuffer, nNumberOfBytesToWrite,694 &ulBytesWritten);693 ret = OSLibDosWrite(pHMHandleData->hHMHandle, (LPVOID)lpBuffer, nNumberOfBytesToWrite, 694 &ulBytesWritten); 695 695 696 696 if(lpNumberOfBytesWritten) { 697 *lpNumberOfBytesWritten = (rc) ? 0 : ulBytesWritten; 698 } 699 return(rc==0); 697 *lpNumberOfBytesWritten = (ret) ? ulBytesWritten : 0; 698 } 699 if(ret == FALSE) { 700 dprintf(("ERROR: WriteFile failed with rc %d", GetLastError())); 701 } 702 703 return ret; 700 704 } 701 705 … … 769 773 lpOverlapped)); 770 774 771 APIRET rc;775 BOOL ret; 772 776 ULONG ulBytesRead; 773 777 … … 781 785 } 782 786 783 r c= OSLibDosRead(pHMHandleData->hHMHandle, (LPVOID)lpBuffer, nNumberOfBytesToRead,784 &ulBytesRead);787 ret = OSLibDosRead(pHMHandleData->hHMHandle, (LPVOID)lpBuffer, nNumberOfBytesToRead, 788 &ulBytesRead); 785 789 786 790 if(lpNumberOfBytesRead) { 787 *lpNumberOfBytesRead = (rc) ? 0 : ulBytesRead; 788 } 789 return(rc==0); 791 *lpNumberOfBytesRead = (ret) ? ulBytesRead : 0; 792 } 793 if(ret == FALSE) { 794 dprintf(("ERROR: ReadFile failed with rc %d", GetLastError())); 795 } 796 return ret; 790 797 } 791 798
Note:
See TracChangeset
for help on using the changeset viewer.