Changeset 32426 in vbox
- Timestamp:
- Sep 11, 2010 2:40:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/fileaio-win.cpp
r29241 r32426 429 429 dwTimeout); 430 430 ASMAtomicXchgBool(&pCtxInt->fWaiting, false); 431 if (!fSucceeded) 431 if ( !fSucceeded 432 && !pOverlapped) 432 433 { 433 /* Includes VERR_TIMEOUT */434 /* The call failed to dequeue a completion packet, includes VERR_TIMEOUT */ 434 435 rc = RTErrConvertFromWin32(GetLastError()); 435 436 break; … … 438 439 /* Check if we got woken up. */ 439 440 if (lCompletionKey == AIO_CONTEXT_WAKEUP_EVENT) 441 { 442 Assert(fSucceeded && !pOverlapped) 440 443 break; 444 } 441 445 442 446 /* A request completed. */ … … 448 452 RTFILEAIOREQ_SET_STATE(pReqInt, COMPLETED); 449 453 450 /* completion status. */451 fSucceeded = GetOverlappedResult(pReqInt->hFile,452 &pReqInt->Overlapped,453 &cbTransfered,454 FALSE);455 454 pReqInt->cbTransfered = cbTransfered; 456 pReqInt->Rc = VINF_SUCCESS; 455 if (fSucceeded) 456 pReqInt->Rc = VINF_SUCCESS; 457 else 458 pReqInt->Rc = RTErrConvertFromWin32(GetLastError()); 457 459 458 460 pahReqs[cRequestsCompleted++] = (RTFILEAIOREQ)pReqInt;
Note:
See TracChangeset
for help on using the changeset viewer.