Changeset 28640 in vbox
- Timestamp:
- Apr 23, 2010 12:48:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/GuestImpl.cpp
r28638 r28640 535 535 536 536 case PROC_STS_TEN: /* Terminated normally. */ 537 it->pProgress->notifyComplete(S_OK); 537 if (!it->pProgress->getCompleted()) 538 it->pProgress->notifyComplete(S_OK); 538 539 break; 539 540 … … 567 568 && errMsg.length()) 568 569 { 569 it->pProgress->notifyComplete(E_FAIL /** @todo Find a better rc! */, COM_IIDOF(IGuest), 570 (CBSTR)Guest::getComponentName(), errMsg.c_str()); 570 if (!it->pProgress->getCompleted()) 571 { 572 it->pProgress->notifyComplete(E_FAIL /** @todo Find a better rc! */, COM_IIDOF(IGuest), 573 (CBSTR)Guest::getComponentName(), errMsg.c_str()); 574 LogFlowFunc(("Callback (context ID=%u, status=%u) progress marked as completed\n", 575 pData->hdr.u32ContextID, pData->u32Status)); 576 } 577 else 578 LogFlowFunc(("Callback (context ID=%u, status=%u) progress already marked as completed\n", 579 pData->hdr.u32ContextID, pData->u32Status)); 571 580 } 572 581 ASMAtomicWriteBool(&it->bCalled, true); … … 655 664 656 665 /* Notify outstanding waits for progress ... */ 657 if (!it->pProgress.isNull()) 666 if ( !it->pProgress.isNull() 667 && !it->pProgress->getCompleted()) 658 668 { 659 669 it->pProgress->notifyComplete(S_OK);
Note:
See TracChangeset
for help on using the changeset viewer.