- 時間撮記:
- 2015-6-26 上午08:47:05 (9 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp
r56616 r56655 277 277 278 278 /* Make a flat data string out of the supported format list. */ 279 Utf8Str strFormats = GuestDnD::toFormatString(m_strFormats, aFormats); 279 Utf8Str strFormats = GuestDnD::toFormatString(m_vecFmtSup, aFormats); 280 280 281 /* If there is no valid supported format, ignore this request. */ 281 282 if (strFormats.isEmpty()) … … 343 344 344 345 /* Make a flat data string out of the supported format list. */ 345 RTCString strFormats = GuestDnD::toFormatString(m_ strFormats, aFormats);346 RTCString strFormats = GuestDnD::toFormatString(m_vecFmtSup, aFormats); 346 347 /* If there is no valid supported format, ignore this request. */ 347 348 if (strFormats.isEmpty()) … … 434 435 435 436 /* Make a flat data string out of the supported format list. */ 436 Utf8Str strFormats = GuestDnD::toFormatString(m_ strFormats, aFormats);437 Utf8Str strFormats = GuestDnD::toFormatString(m_vecFmtSup, aFormats); 437 438 /* If there is no valid supported format, ignore this request. */ 438 439 if (strFormats.isEmpty()) … … 462 463 { 463 464 resAction = GuestDnD::toMainAction(pResp->defAction()); 464 aFormat = pResp->f ormat();465 aFormat = pResp->fmtReq(); 465 466 466 467 LogFlowFunc(("resFormat=%s, resAction=%RU32\n", 467 pResp->f ormat().c_str(), pResp->defAction()));468 pResp->fmtReq().c_str(), pResp->defAction())); 468 469 } 469 470 } … … 556 557 pSendCtx->mpResp = pResp; 557 558 pSendCtx->mScreenID = aScreenId; 558 pSendCtx->mF ormat= aFormat;559 pSendCtx->mFmtReq = aFormat; 559 560 pSendCtx->mData.vecData = aData; 560 561 … … 692 693 mDataBase.mListOutgoing.clear(); 693 694 694 const char *pszFormat = pCtx->mF ormat.c_str();695 uint32_t cbFormat = pCtx->mF ormat.length() + 1;695 const char *pszFormat = pCtx->mFmtReq.c_str(); 696 uint32_t cbFormat = pCtx->mFmtReq.length() + 1; 696 697 697 698 /* Do we need to build up a file tree? */ … … 1129 1130 MsgSndData.setType(DragAndDropSvc::HOST_DND_HG_SND_DATA); 1130 1131 MsgSndData.setNextUInt32(pCtx->mScreenID); 1131 MsgSndData.setNextPointer((void *)pCtx->mF ormat.c_str(), (uint32_t)pCtx->mFormat.length() + 1);1132 MsgSndData.setNextUInt32((uint32_t)pCtx->mF ormat.length() + 1);1132 MsgSndData.setNextPointer((void *)pCtx->mFmtReq.c_str(), (uint32_t)pCtx->mFmtReq.length() + 1); 1133 MsgSndData.setNextUInt32((uint32_t)pCtx->mFmtReq.length() + 1); 1133 1134 MsgSndData.setNextPointer((void*)strData.c_str(), (uint32_t)cbData); 1134 1135 MsgSndData.setNextUInt32((uint32_t)cbData); … … 1279 1280 Msg.setType(DragAndDropSvc::HOST_DND_HG_SND_DATA); 1280 1281 Msg.setNextUInt32(pCtx->mScreenID); 1281 Msg.setNextPointer((void *)pCtx->mF ormat.c_str(), (uint32_t)pCtx->mFormat.length() + 1);1282 Msg.setNextUInt32((uint32_t)pCtx->mF ormat.length() + 1);1282 Msg.setNextPointer((void *)pCtx->mFmtReq.c_str(), (uint32_t)pCtx->mFmtReq.length() + 1); 1283 Msg.setNextUInt32((uint32_t)pCtx->mFmtReq.length() + 1); 1283 1284 Msg.setNextPointer((void*)&pCtx->mData.vecData.front(), (uint32_t)cbDataTotal); 1284 1285 Msg.setNextUInt32(cbDataTotal);
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器