Changeset 55823 in vbox
- Timestamp:
- May 12, 2015 11:46:09 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 100264
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestDnDSourceImpl.cpp
r55706 r55823 305 305 return setError(E_INVALIDARG, tr("Another drop operation already is in progress")); 306 306 307 /* Gets reset when the thread is finished. */ 307 308 ASMAtomicWriteBool(&mDataBase.mfTransferIsPending, true); 308 309 … … 324 325 RecvDataTask *pTask = new RecvDataTask(this, &mData.mRecvCtx); 325 326 AssertReturn(pTask->isOk(), pTask->getRC()); 327 328 LogFlowFunc(("Starting thread ...\n")); 326 329 327 330 int rc = RTThreadCreate(NULL, GuestDnDSource::i_receiveDataThread, … … 786 789 ASMAtomicWriteBool(&pSource->mDataBase.mfTransferIsPending, false); 787 790 788 LogFlowFunc(("pSource=%p returning rc=%Rrc\n", (GuestDnDSource *)pSource, rc));789 790 791 if (pTask) 791 792 delete pTask; 793 794 LogFlowFunc(("pSource=%p returning rc=%Rrc\n", (GuestDnDSource *)pSource, rc)); 792 795 return rc; 793 796 } … … 1022 1025 1023 1026 int rc = VINF_SUCCESS; 1027 1028 int rcCallback = VINF_SUCCESS; /* rc for the callback. */ 1024 1029 bool fNotify = false; 1025 1030 … … 1092 1097 1093 1098 pCtx->mpResp->reset(); 1099 if (RT_SUCCESS(pCBData->rc)) 1100 pCBData->rc = VERR_GENERAL_FAILURE; /* Make sure some error is set. */ 1094 1101 rc = pCtx->mpResp->setProgress(100, DragAndDropSvc::DND_PROGRESS_ERROR, pCBData->rc); 1095 1102 if (RT_SUCCESS(rc)) 1096 rc = pCBData->rc;1103 rcCallback = pCBData->rc; 1097 1104 break; 1098 1105 } … … 1103 1110 } 1104 1111 1105 if (RT_FAILURE(rc)) 1112 if ( RT_FAILURE(rc) 1113 || RT_FAILURE(rcCallback)) 1114 { 1106 1115 fNotify = true; 1116 if (RT_SUCCESS(rcCallback)) 1117 rcCallback = rc; 1118 } 1107 1119 1108 1120 /* All URI data processed? */ … … 1113 1125 } 1114 1126 1115 LogFlowFunc(("cbProcessed=%RU64, cbToProcess=%RU64, fNotify=%RTbool, rc =%Rrc\n",1116 pCtx->mData.cbProcessed, pCtx->mData.cbToProcess, fNotify, rc ));1127 LogFlowFunc(("cbProcessed=%RU64, cbToProcess=%RU64, fNotify=%RTbool, rcCallback=%Rrc, rc=%Rrc\n", 1128 pCtx->mData.cbProcessed, pCtx->mData.cbToProcess, fNotify, rcCallback, rc)); 1117 1129 1118 1130 if (fNotify) 1119 1131 { 1120 int rc2 = pCtx->mCallback.Notify(rc );1132 int rc2 = pCtx->mCallback.Notify(rcCallback); 1121 1133 AssertRC(rc2); 1122 1134 }
Note:
See TracChangeset
for help on using the changeset viewer.