Changeset 7518 for trunk/src/kernel32/Fileio.cpp
- Timestamp:
- Dec 1, 2001, 8:26:40 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/Fileio.cpp
r7457 r7518 1 /* $Id: Fileio.cpp,v 1.5 6 2001-11-26 14:53:57sandervl Exp $ */1 /* $Id: Fileio.cpp,v 1.57 2001-12-01 19:26:40 sandervl Exp $ */ 2 2 3 3 /* … … 653 653 LPOVERLAPPED, lpOverlapped) 654 654 { 655 if(lpNumberOfBytesRead) *lpNumberOfBytesRead = 0; 656 if(dwLength == 0) { 657 dprintf(("!WARNING!: Nothing to do")); 658 //TODO: should we fail here instead?? (wine doesn't) 659 return TRUE; 660 } 655 661 return (HMReadFile(hFile, 656 662 pBuffer, … … 668 674 LPOVERLAPPED_COMPLETION_ROUTINE, lpCompletionRoutine) 669 675 { 676 if(nNumberOfBytesToRead == 0) { 677 dprintf(("!WARNING!: Nothing to do")); 678 //TODO: should we fail here instead?? (wine doesn't) 679 return TRUE; 680 } 670 681 return (HMReadFileEx(hFile, 671 682 lpBuffer, … … 682 693 LPOVERLAPPED, lpOverlapped) 683 694 { 695 if(nrbyteswritten) *nrbyteswritten = 0; 696 if(nrbytes == 0) { 697 dprintf(("!WARNING!: Nothing to do")); 698 //TODO: should we fail here instead?? (wine doesn't) 699 return TRUE; 700 } 701 684 702 return (HMWriteFile(hFile, 685 703 buffer, … … 716 734 LPOVERLAPPED_COMPLETION_ROUTINE, lpCompletionRoutine) 717 735 { 736 if(nNumberOfBytesToWrite == 0) { 737 dprintf(("!WARNING!: Nothing to do")); 738 //TODO: should we fail here instead?? (wine doesn't) 739 return TRUE; 740 } 741 718 742 return (HMWriteFileEx(hFile, 719 743 (LPVOID)lpBuffer,
Note:
See TracChangeset
for help on using the changeset viewer.