Changeset 27922 in vbox
- Timestamp:
- Mar 31, 2010 7:26:10 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Devices/Storage/DrvVD.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r27920 r27922 101 101 /** Flag whether a synchronous operation is currently pending. */ 102 102 volatile bool fSyncIoPending; 103 /** Return code of the last completed request. */ 104 int rcReqLast; 103 105 /** Callback routine */ 104 106 PFNVDCOMPLETED pfnCompleted; … … 292 294 if (pStorageBackend->fSyncIoPending) 293 295 { 296 pStorageBackend->rcReqLast = rcReq; 294 297 pStorageBackend->fSyncIoPending = false; 295 298 RTSemEventSignal(pStorageBackend->EventSem); … … 338 341 { 339 342 pStorageBackend->fSyncIoPending = false; 343 pStorageBackend->rcReqLast = VINF_SUCCESS; 340 344 pStorageBackend->pfnCompleted = pfnCompleted; 341 345 pStorageBackend->pInterfaceThreadSync = NULL; … … 418 422 *pcbRead = cbRead; 419 423 420 return VINF_SUCCESS;424 return pStorageBackend->rcReqLast; 421 425 } 422 426 … … 450 454 *pcbWritten = cbWrite; 451 455 452 return VINF_SUCCESS;456 return pStorageBackend->rcReqLast; 453 457 } 454 458 … … 475 479 ASMAtomicXchgBool(&pStorageBackend->fSyncIoPending, false); 476 480 477 return VINF_SUCCESS;481 return pStorageBackend->rcReqLast; 478 482 } 479 483
Note:
See TracChangeset
for help on using the changeset viewer.

