vbox的更動 62379 路徑 trunk/src/VBox/Main
- 時間撮記:
- 2016-7-20 下午08:11:50 (8 年 以前)
- 位置:
- trunk/src/VBox/Main
- 檔案:
-
- 修改 17 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Main/include/GuestDnDPrivate.h
r62372 r62379 242 242 uint64_t addProcessed(uint32_t cbDataAdd) 243 243 { 244 const uint64_t cbTotal = getTotal(); 244 const uint64_t cbTotal = getTotal(); NOREF(cbTotal); 245 245 Assert(cbProcessed + cbDataAdd <= cbTotal); 246 246 cbProcessed += cbDataAdd; -
trunk/src/VBox/Main/include/HGCMObjects.h
r62372 r62379 90 90 uint32_t Handle() 91 91 { 92 return m_core.AvlCore.Key;92 return (uint32_t)m_core.AvlCore.Key; 93 93 }; 94 94 -
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r62372 r62379 306 306 BOOL fRemove; 307 307 pNREv->COMGETTER(Remove)(&fRemove); 308 bool fUdp = (proto == NATProtocol_UDP);309 308 Bstr hostIp, guestIp; 310 309 LONG hostPort, guestPort; … … 3909 3908 DeviceType_T lType; 3910 3909 PCFGMNODE pLunL0 = NULL; 3911 PCFGMNODE pCfg = NULL;3912 3910 3913 3911 hrc = pMediumAtt->COMGETTER(Device)(&lDev); H(); … … 4818 4816 /* Remove keys which are supposed to be removed on a suspend. */ 4819 4817 int rc = m_pKeyStore->deleteAllSecretKeys(true /* fSuspend */, true /* fForce */); 4818 AssertRC(rc); NOREF(rc); 4820 4819 } 4821 4820 … … 7554 7553 7555 7554 PUVM pUVM = mpUVM; Assert(pUVM != NULL); 7556 uint32_t cRefs = VMR3RetainUVM(pUVM); Assert(cRefs != UINT32_MAX); 7555 uint32_t cRefs = VMR3RetainUVM(pUVM); Assert(cRefs != UINT32_MAX); NOREF(cRefs); 7557 7556 7558 7557 AssertMsg( mMachineState == MachineState_Running … … 8131 8130 8132 8131 pFolderName->u16Size = (uint16_t)cbString; 8133 pFolderName->u16Length = (uint16_t) cbString - sizeof(RTUTF16);8132 pFolderName->u16Length = (uint16_t)(cbString - sizeof(RTUTF16)); 8134 8133 8135 8134 parms[0].type = VBOX_HGCM_SVC_PARM_PTR; … … 8148 8147 8149 8148 pMapName->u16Size = (uint16_t)cbString; 8150 pMapName->u16Length = (uint16_t) cbString - sizeof(RTUTF16);8149 pMapName->u16Length = (uint16_t)(cbString - sizeof(RTUTF16)); 8151 8150 8152 8151 parms[1].type = VBOX_HGCM_SVC_PARM_PTR; … … 8211 8210 8212 8211 pMapName->u16Size = (uint16_t)cbString; 8213 pMapName->u16Length = (uint16_t) cbString - sizeof(RTUTF16);8212 pMapName->u16Length = (uint16_t)(cbString - sizeof(RTUTF16)); 8214 8213 8215 8214 parms.type = VBOX_HGCM_SVC_PARM_PTR; … … 10282 10281 { 10283 10282 PDRVMAINSTATUS pThis = RT_FROM_MEMBER(pInterface, DRVMAINSTATUS, IMediaNotify); 10284 PPDMDRVINS pDrvIns = pThis->pDrvIns;10285 10283 LogFunc(("uLUN=%d\n", uLUN)); 10286 10284 if (pThis->pmapMediumAttachments) -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r62372 r62379 1702 1702 1703 1703 char szParamName[] = "BootDeviceX"; 1704 szParamName[sizeof(szParamName) - 2] = ( (char (pos - 1))+ '0');1704 szParamName[sizeof(szParamName) - 2] = (char)(pos - 1 + '0'); 1705 1705 1706 1706 const char *pszBootDevice; … … 2535 2535 for (uint32_t i = 0; i < 6; ++i) 2536 2536 { 2537 charc1 = *macStr++ - '0';2537 int c1 = *macStr++ - '0'; 2538 2538 if (c1 > 9) 2539 2539 c1 -= 7; 2540 charc2 = *macStr++ - '0';2540 int c2 = *macStr++ - '0'; 2541 2541 if (c2 > 9) 2542 2542 c2 -= 7; 2543 *pMac++ = ( (c1 & 0x0f) << 4) | (c2 & 0x0f);2543 *pMac++ = (char)(((c1 & 0x0f) << 4) | (c2 & 0x0f)); 2544 2544 } 2545 2545 InsertConfigBytes(pCfg, "MAC", &Mac, sizeof(Mac)); … … 2598 2598 2599 2599 PCFGMNODE pNetBtDevCfg; 2600 achBootIdx[0] = '0' + uBootIdx++; /* Boot device order. */2600 achBootIdx[0] = (char)('0' + uBootIdx++); /* Boot device order. */ 2601 2601 InsertConfigNode(pNetBootCfg, achBootIdx, &pNetBtDevCfg); 2602 2602 InsertConfigInteger(pNetBtDevCfg, "NIC", it->mInstance); … … 4244 4244 try 4245 4245 { 4246 int rc = VINF_SUCCESS;4247 4246 HRESULT hrc; 4248 4247 Bstr bstr; 4249 PCFGMNODE pLunL1 = NULL;4250 4248 PCFGMNODE pCfg = NULL; 4251 4249 -
trunk/src/VBox/Main/src-client/ConsoleVRDPServer.cpp
r62372 r62379 2146 2146 pvContext, pvUser, hVideo, u32Id, pvData, cbData)); 2147 2147 2148 ConsoleVRDPServer *pServer = static_cast<ConsoleVRDPServer*>(pvContext); 2148 ConsoleVRDPServer *pServer = static_cast<ConsoleVRDPServer*>(pvContext); NOREF(pServer); 2149 2149 H3DORInstance *p = (H3DORInstance *)pvUser; 2150 2150 Assert(p); … … 3693 3693 { 3694 3694 VRDEORDERHDR update; 3695 update.x = x;3696 update.y = y;3697 update.w = w;3698 update.h = h;3695 update.x = (uint16_t)x; 3696 update.y = (uint16_t)y; 3697 update.w = (uint16_t)w; 3698 update.h = (uint16_t)h; 3699 3699 if (mpEntryPoints && mhServer) 3700 3700 { -
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r62372 r62379 441 441 442 442 /* First block. */ 443 SSMR3PutU32(pSSM, cbThumbnail + 2 * sizeof(uint32_t));443 SSMR3PutU32(pSSM, (uint32_t)(cbThumbnail + 2 * sizeof(uint32_t))); 444 444 SSMR3PutU32(pSSM, 0); /* Block type: thumbnail. */ 445 445 … … 452 452 453 453 /* Second block. */ 454 SSMR3PutU32(pSSM, cbPNG + 2 * sizeof(uint32_t));454 SSMR3PutU32(pSSM, (uint32_t)(cbPNG + 2 * sizeof(uint32_t))); 455 455 SSMR3PutU32(pSSM, 1); /* Block type: png. */ 456 456 … … 469 469 Display::i_displaySSMLoadScreenshot(PSSMHANDLE pSSM, void *pvUser, uint32_t uVersion, uint32_t uPass) 470 470 { 471 Display *that = static_cast<Display*>(pvUser);472 473 471 if (uVersion != sSSMDisplayScreenshotVer) 474 472 return VERR_SSM_UNSUPPORTED_DATA_UNIT_VERSION; … … 549 547 uint32_t cMonitors; 550 548 int rc = SSMR3GetU32(pSSM, &cMonitors); 549 AssertRCReturn(rc, rc); 551 550 if (cMonitors != that->mcMonitors) 552 551 return SSMR3SetCfgError(pSSM, RT_SRC_POS, N_("Number of monitors changed (%d->%d)!"), cMonitors, that->mcMonitors); … … 1373 1372 pCtl->aParms[0].type = VBOX_HGCM_SVC_PARM_PTR; 1374 1373 pCtl->aParms[0].u.pointer.addr = pRectsCopy; 1375 pCtl->aParms[0].u.pointer.size = cRect * sizeof(RTRECT);1374 pCtl->aParms[0].u.pointer.size = (uint32_t)(cRect * sizeof(RTRECT)); 1376 1375 1377 1376 rc = i_crCtlSubmit(&pCtl->Hdr, sizeof(*pCtl), i_displayCrCmdFree, pCtl); … … 3103 3102 { 3104 3103 /* No VBVA do a display update. */ 3105 DISPLAYFBINFO *pFBInfo = &pDisplay->maFramebuffers[VBOX_VIDEO_PRIMARY_SCREEN];3106 3104 pDrv->pUpPort->pfnUpdateDisplay(pDrv->pUpPort); 3107 3105 } … … 3115 3113 for (uScreenId = 0; uScreenId < pDisplay->mcMonitors; uScreenId++) 3116 3114 { 3117 DISPLAYFBINFO *pFBInfo = &pDisplay->maFramebuffers[uScreenId];3118 3119 3115 Assert(pDisplay->mParent && pDisplay->mParent->i_consoleVRDPServer()); 3120 3116 pDisplay->mParent->i_consoleVRDPServer()->SendUpdate(uScreenId, NULL, 0); … … 3290 3286 { 3291 3287 unsigned id = (unsigned)pCommand->iDisplay; 3292 int rc = VINF_SUCCESS;3293 3288 if (id >= mcMonitors) 3294 3289 return VERR_INVALID_PARAMETER; … … 3586 3581 uGuestWidth, uGuestHeight, 3587 3582 pu8BufferAddress, u64TimeStamp); 3583 NOREF(rc); 3588 3584 Assert(rc == VINF_SUCCESS /* || rc == VERR_TRY_AGAIN || rc == VINF_TRY_AGAIN*/); 3589 3585 # endif … … 3848 3844 PDRVMAINDISPLAY pDrv = PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface); 3849 3845 Display *pThis = pDrv->pDisplay; 3850 DISPLAYFBINFO *pFBInfo = &pThis->maFramebuffers[uScreenId];3851 3846 3852 3847 if (ASMAtomicReadU32(&pThis->mu32UpdateVBVAFlags) > 0) … … 4158 4153 4159 4154 PDRVMAINDISPLAY pDrv = PDMIDISPLAYCONNECTOR_2_MAINDISPLAY(pInterface); 4160 Display *pThis = pDrv->pDisplay;4161 4155 4162 4156 uint32_t cbShape = 0; -
trunk/src/VBox/Main/src-client/DisplayImplLegacy.cpp
r62372 r62379 718 718 phdr->h = (uint16_t)h; 719 719 720 DISPLAYFBINFO *pFBInfo = &maFramebuffers[uScreenId];721 722 720 /* Handle the command. 723 721 * -
trunk/src/VBox/Main/src-client/DrvAudioVRDE.cpp
r62372 r62379 498 498 VRDEAUDIOFORMAT audioFmt = pVRDEAudioBegin->fmt; 499 499 500 int iSampleHz = VRDE_AUDIO_FMT_SAMPLE_FREQ(audioFmt); 501 int cChannels = VRDE_AUDIO_FMT_CHANNELS(audioFmt); 502 int cBits = VRDE_AUDIO_FMT_BITS_PER_SAMPLE(audioFmt); 503 bool fUnsigned = VRDE_AUDIO_FMT_SIGNED(audioFmt); 500 int iSampleHz = VRDE_AUDIO_FMT_SAMPLE_FREQ(audioFmt); NOREF(iSampleHz); 501 int cChannels = VRDE_AUDIO_FMT_CHANNELS(audioFmt); NOREF(cChannels); 502 int cBits = VRDE_AUDIO_FMT_BITS_PER_SAMPLE(audioFmt); NOREF(cBits); 503 bool fUnsigned = VRDE_AUDIO_FMT_SIGNED(audioFmt); NOREF(fUnsigned); 504 504 505 505 LogFlowFunc(("cbSample=%RU32, iSampleHz=%d, cChannels=%d, cBits=%d, fUnsigned=%RTbool\n", -
trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp
r62372 r62379 91 91 { 92 92 int vrc = GuestDnDTarget::i_sendDataThread(*m_pThread, this); 93 NOREF(vrc); 93 94 } 94 95 -
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r62372 r62379 292 292 LogFlowThisFuncEnter(); 293 293 294 int rc = VINF_SUCCESS;295 296 294 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 297 295 … … 345 343 baseUninit(); 346 344 347 LogFlowFuncLeave RC(rc);345 LogFlowFuncLeave(); 348 346 } 349 347 … … 1744 1742 LogFlowThisFuncEnter(); 1745 1743 1746 HRESULT hr = S_OK;1747 1744 int vrc = VINF_SUCCESS; 1748 1745 … … 1761 1758 * worker thread. */ 1762 1759 //this function delete pTask in case of exceptions, so there is no need in the call of delete operator 1763 hr = pTask->createThread(); 1764 1760 HRESULT hrc = pTask->createThread(); 1765 1761 } 1766 1762 catch(std::bad_alloc &) -
trunk/src/VBox/Main/src-client/MachineDebuggerImpl.cpp
r62372 r62379 1313 1313 ssize_t cch = DBGFR3RegFormatValue(szHex, sizeof(szHex), &paRegs[iReg].Val, 1314 1314 paRegs[iReg].enmType, true /*fSpecial*/); 1315 Assert(cch > 0); 1315 Assert(cch > 0); NOREF(cch); 1316 1316 aNames[iReg] = Utf8Str(paRegs[iReg].pszName); 1317 1317 aValues[iReg] = Utf8Str(szHex); -
trunk/src/VBox/Main/src-client/MouseImpl.cpp
r62372 r62379 1009 1009 if (fValid) 1010 1010 { 1011 uint8_t fu8 = (fInContact? 0x01: 0x00)1012 | (fInRange? 0x02: 0x00);1011 uint8_t fu8 = (uint8_t)( (fInContact? 0x01: 0x00) 1012 | (fInRange? 0x02: 0x00)); 1013 1013 pau64Contacts[cContacts] = RT_MAKE_U64_FROM_U16((uint16_t)xAdj, 1014 1014 (uint16_t)yAdj, -
trunk/src/VBox/Main/src-client/PCIRawDevImpl.cpp
r62372 r62379 79 79 80 80 HRESULT hrc = machine->COMGETTER(Parent)(vbox.asOutParam()); 81 Assert(SUCCEEDED(hrc)); 81 Assert(SUCCEEDED(hrc)); NOREF(hrc); 82 82 83 83 ComPtr<IEventSource> es; … … 98 98 msg = BstrFmt("runtime error %Rrc", rc); 99 99 100 fireHostPCIDevicePlugEvent(es, bstrId.raw(), true /* plugged */, RT_SUCCESS (rc) /* success */, pda, msg.raw());100 fireHostPCIDevicePlugEvent(es, bstrId.raw(), true /* plugged */, RT_SUCCESS_NP(rc) /* success */, pda, msg.raw()); 101 101 102 102 return VINF_SUCCESS; -
trunk/src/VBox/Main/src-client/RemoteUSBDeviceImpl.cpp
r62372 r62379 79 79 80 80 unconst(mData.port) = pDevDesc->idPort; 81 unconst(mData.version) = pDevDesc->bcdUSB >> 8;81 unconst(mData.version) = (uint16_t)(pDevDesc->bcdUSB >> 8); 82 82 if (fDescExt) 83 83 { … … 117 117 118 118 mData.dirty = false; 119 unconst(mData.devId) = pDevDesc->id;119 unconst(mData.devId) = (uint16_t)pDevDesc->id; 120 120 121 121 unconst(mData.clientId) = u32ClientId; -
trunk/src/VBox/Main/src-client/UsbCardReader.cpp
r62372 r62379 432 432 LogFlowFunc(("ENTER: pvUser:%p\n", 433 433 pvUser)); 434 PUSBCARDREADER pThis = RT_FROM_MEMBER(pInterface, USBCARDREADER, ICardReaderDown); 434 PUSBCARDREADER pThis = RT_FROM_MEMBER(pInterface, USBCARDREADER, ICardReaderDown); NOREF(pThis); 435 435 int rc = VERR_NOT_SUPPORTED; 436 436 AssertRC(rc); … … 446 446 LogFlowFunc(("ENTER: pvUser:%p, u32Disposition:%RX32\n", 447 447 pvUser, u32Disposition)); 448 PUSBCARDREADER pThis = RT_FROM_MEMBER(pInterface, USBCARDREADER, ICardReaderDown); 448 PUSBCARDREADER pThis = RT_FROM_MEMBER(pInterface, USBCARDREADER, ICardReaderDown); NOREF(pThis); 449 449 int rc = VERR_NOT_SUPPORTED; 450 450 AssertRC(rc); … … 745 745 case VRDE_SCARD_NOTIFY_DETACH: 746 746 { 747 VRDESCARDNOTIFYDETACH *p = (VRDESCARDNOTIFYDETACH *)pvData; 747 VRDESCARDNOTIFYDETACH *p = (VRDESCARDNOTIFYDETACH *)pvData; NOREF(p); 748 748 Assert(cbData == sizeof(VRDESCARDNOTIFYDETACH)); 749 749 … … 831 831 { 832 832 Assert(cbData == sizeof(VRDESCARDRELEASECONTEXTRSP) || RT_FAILURE(rcRequest)); 833 VRDESCARDRELEASECONTEXTRSP *pRsp = (VRDESCARDRELEASECONTEXTRSP *)pvData; 834 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; 833 VRDESCARDRELEASECONTEXTRSP *pRsp = (VRDESCARDRELEASECONTEXTRSP *)pvData; NOREF(pRsp); 834 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; NOREF(pCtx); 835 835 836 836 Assert(pCtx->u32Function == u32Function); … … 903 903 { 904 904 Assert(cbData == sizeof(VRDESCARDCANCELRSP) || RT_FAILURE(rcRequest)); 905 VRDESCARDCANCELRSP *pRsp = (VRDESCARDCANCELRSP *)pvData; 906 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; 905 VRDESCARDCANCELRSP *pRsp = (VRDESCARDCANCELRSP *)pvData; NOREF(pRsp); 906 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; NOREF(pCtx); 907 907 908 908 Assert(pCtx->u32Function == u32Function); … … 953 953 { 954 954 Assert(cbData == sizeof(VRDESCARDRECONNECTRSP) || RT_FAILURE(rcRequest)); 955 VRDESCARDRECONNECTRSP *pRsp = (VRDESCARDRECONNECTRSP *)pvData; 956 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; 955 VRDESCARDRECONNECTRSP *pRsp = (VRDESCARDRECONNECTRSP *)pvData; NOREF(pRsp); 956 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; NOREF(pCtx); 957 957 958 958 Assert(pCtx->u32Function == u32Function); … … 994 994 { 995 995 Assert(cbData == sizeof(VRDESCARDBEGINTRANSACTIONRSP) || RT_FAILURE(rcRequest)); 996 VRDESCARDBEGINTRANSACTIONRSP *pRsp = (VRDESCARDBEGINTRANSACTIONRSP *)pvData; 997 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; 996 VRDESCARDBEGINTRANSACTIONRSP *pRsp = (VRDESCARDBEGINTRANSACTIONRSP *)pvData; NOREF(pRsp); 997 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; NOREF(pCtx); 998 998 999 999 Assert(pCtx->u32Function == u32Function); … … 1005 1005 { 1006 1006 Assert(cbData == sizeof(VRDESCARDENDTRANSACTIONRSP) || RT_FAILURE(rcRequest)); 1007 VRDESCARDENDTRANSACTIONRSP *pRsp = (VRDESCARDENDTRANSACTIONRSP *)pvData; 1008 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; 1007 VRDESCARDENDTRANSACTIONRSP *pRsp = (VRDESCARDENDTRANSACTIONRSP *)pvData; NOREF(pRsp); 1008 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; NOREF(pCtx); 1009 1009 1010 1010 Assert(pCtx->u32Function == u32Function); … … 1016 1016 { 1017 1017 Assert(cbData == sizeof(VRDESCARDSTATERSP) || RT_FAILURE(rcRequest)); 1018 VRDESCARDSTATERSP *pRsp = (VRDESCARDSTATERSP *)pvData; 1019 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; 1018 VRDESCARDSTATERSP *pRsp = (VRDESCARDSTATERSP *)pvData; NOREF(pRsp); 1019 UCRREQCTX *pCtx = (UCRREQCTX *)pvUser; NOREF(pCtx); 1020 1020 1021 1021 Assert(pCtx->u32Function == u32Function); … … 1578 1578 req.ioSendPci.u32Protocol = pioSendRequest->u32Protocol; 1579 1579 req.ioSendPci.u32PciLength = pioSendRequest->cbPciLength < 2 * sizeof(uint32_t)? 1580 2 * sizeof(uint32_t):1580 (uint32_t)(2 * sizeof(uint32_t)): 1581 1581 pioSendRequest->cbPciLength; 1582 1582 Assert(pioSendRequest->cbPciLength <= VRDE_SCARD_MAX_PCI_DATA + 2 * sizeof(uint32_t)); -
trunk/src/VBox/Main/src-client/UsbWebcamInterface.cpp
r62372 r62379 215 215 case VRDE_VIDEOIN_NOTIFY_ID_DETACH: 216 216 { 217 VRDEVIDEOINNOTIFYDETACH *p = (VRDEVIDEOINNOTIFYDETACH *)pvData; 217 VRDEVIDEOINNOTIFYDETACH *p = (VRDEVIDEOINNOTIFYDETACH *)pvData; NOREF(p); 218 218 Assert(cbData == sizeof(VRDEVIDEOINNOTIFYDETACH)); 219 219 … … 272 272 const VRDEVIDEOINCTRLHDR *pControl, uint32_t cbControl) 273 273 { 274 EMWEBCAMREMOTE *pRemote = (EMWEBCAMREMOTE *)pDeviceCtx; 274 EMWEBCAMREMOTE *pRemote = (EMWEBCAMREMOTE *)pDeviceCtx; NOREF(pRemote); 275 275 Assert(pRemote == mpRemote); 276 276 -
trunk/src/VBox/Main/src-client/VMMDevInterface.cpp
r62372 r62379 535 535 PDRVMAINVMMDEV pDrv = RT_FROM_MEMBER(pInterface, DRVMAINVMMDEV, Connector); 536 536 Console *pConsole = pDrv->pVMMDev->getParent(); 537 BOOL val = 0;538 537 539 538 if (!pfPageFusionEnabled)
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器