Changeset 98618 in vbox for trunk/src/VBox/Runtime/r3/win
- Timestamp:
- Feb 17, 2023 12:40:37 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/pipe-win.cpp
r98103 r98618 326 326 327 327 /* resubmit the remainder of the buffer - can this actually happen? */ 328 memmove(&pThis->pbBounceBuf[0], &pThis->pbBounceBuf[cbWritten], pThis->cbBounceBufUsed - cbWritten); 328 pThis->cbBounceBufUsed -= cbWritten; 329 memmove(&pThis->pbBounceBuf[0], &pThis->pbBounceBuf[cbWritten], pThis->cbBounceBufUsed); 329 330 rc = ResetEvent(pThis->Overlapped.hEvent); Assert(rc == TRUE); 330 if (!WriteFile(pThis->hPipe, pThis->pbBounceBuf, (DWORD)pThis->cbBounceBufUsed, 331 &cbWritten, &pThis->Overlapped))332 {333 if ( GetLastError()== ERROR_IO_PENDING)331 if (!WriteFile(pThis->hPipe, pThis->pbBounceBuf, (DWORD)pThis->cbBounceBufUsed, &cbWritten, &pThis->Overlapped)) 332 { 333 DWORD const dwErr = GetLastError(); 334 if (dwErr == ERROR_IO_PENDING) 334 335 rc = VINF_TRY_AGAIN; 335 336 else 336 337 { 337 338 pThis->fIOPending = false; 338 if ( GetLastError()== ERROR_NO_DATA)339 if (dwErr == ERROR_NO_DATA) 339 340 rc = VERR_BROKEN_PIPE; 340 341 else
Note:
See TracChangeset
for help on using the changeset viewer.