Changeset 57882 in vbox for trunk/src/VBox/Devices/Serial/DrvNamedPipe.cpp
- Timestamp:
- Sep 24, 2015 2:40:39 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 102848
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Serial/DrvNamedPipe.cpp
r57358 r57882 116 116 DWORD uError = GetLastError(); 117 117 118 if (uError == ERROR_IO_PENDING) 119 { 120 uError = 0; 121 122 /* Wait for incoming bytes. */ 123 if (GetOverlappedResult(pThis->NamedPipe, &pThis->OverlappedRead, &cbReallyRead, TRUE) == FALSE) 124 uError = GetLastError(); 125 } 126 118 127 if ( uError == ERROR_PIPE_LISTENING 119 128 || uError == ERROR_PIPE_NOT_CONNECTED) … … 127 136 else 128 137 { 129 if (uError == ERROR_IO_PENDING)130 {131 uError = 0;132 133 /* Wait for incoming bytes. */134 if (GetOverlappedResult(pThis->NamedPipe, &pThis->OverlappedRead, &cbReallyRead, TRUE) == FALSE)135 uError = GetLastError();136 }137 138 138 rc = RTErrConvertFromWin32(uError); 139 139 Log(("drvNamedPipeRead: ReadFile returned %d (%Rrc)\n", uError, rc));
Note:
See TracChangeset
for help on using the changeset viewer.