Changeset 1662 in vbox
- Timestamp:
- Mar 23, 2007 10:44:55 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 19795
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Serial/DrvNamedPipe.cpp
r1661 r1662 79 79 /* File handle of the named pipe. */ 80 80 RTFILE NamedPipe; 81 /* Dummy overlapped structure. */81 /* Overlapped structure for writes. */ 82 82 OVERLAPPED OverlappedWrite; 83 83 /* Overlapped structure for reads. */ … … 134 134 /* Wait for incoming bytes. */ 135 135 if (GetOverlappedResult((HANDLE)pData->NamedPipe, &pData->OverlappedRead, (DWORD *)&cbReallyRead, TRUE) == FALSE) 136 {137 136 uError = GetLastError(); 138 }139 137 } 140 138 … … 225 223 } 226 224 else 227 cbWritten = *cbWrite; 225 { 226 /* Wait for the write to complete. */ 227 if (GetOverlappedResult((HANDLE)pData->NamedPipe, &pData->OverlappedWrite, (DWORD *)&cbWritten, TRUE) == FALSE) 228 uError = GetLastError(); 229 } 228 230 } 229 231 else
Note:
See TracChangeset
for help on using the changeset viewer.