VirtualBox

Changeset 84389 in vbox for trunk/src


Ignore:
Timestamp:
May 20, 2020 6:19:44 AM (5 years ago)
Author:
vboxsync
Message:

Fix more windows compiler warnings

Location:
trunk/src/VBox/Devices
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevVirtioNet_1_0.cpp

    r84388 r84389  
    18631863
    18641864    if (pThisCC->pDrv && fPromiscChanged)
    1865     {
    1866         bool fPromiscuous = pThis->fPromiscuous | pThis->fAllMulticast;
    1867         pThisCC->pDrv->pfnSetPromiscuousMode(pThisCC->pDrv, (uint8_t)fPromiscuous);
    1868     }
     1865        pThisCC->pDrv->pfnSetPromiscuousMode(pThisCC->pDrv, pThis->fPromiscuous | pThis->fAllMulticast);
    18691866
    18701867    return VIRTIONET_OK;
     
    20762073}
    20772074
    2078 static int virtioNetR3ReadHeader(PPDMDEVINS pDevIns, RTGCPHYS GCPhys, PVIRTIONET_PKT_HDR_T pPktHdr, uint32_t cbFrame)
     2075static int virtioNetR3ReadHeader(PPDMDEVINS pDevIns, RTGCPHYS GCPhys, PVIRTIONET_PKT_HDR_T pPktHdr, size_t cbFrame)
    20792076{
    20802077    int rc = PDMDevHlpPCIPhysRead(pDevIns, GCPhys, pPktHdr, sizeof(*pPktHdr));
  • trunk/src/VBox/Devices/Storage/DevVirtioSCSI.cpp

    r84388 r84389  
    818818static int virtioScsiR3ReqErr(PPDMDEVINS pDevIns, PVIRTIOSCSI pThis, PVIRTIOSCSICC pThisCC, uint16_t qIdx,
    819819                              PVIRTIO_DESC_CHAIN_T pDescChain, REQ_RESP_HDR_T *pRespHdr, uint8_t *pbSense,
    820                               uint32_t cbSenseCfg)
     820                              size_t cbSenseCfg)
    821821{
    822822    Log2Func(("   status: %s    response: %s\n",
     
    885885{
    886886    REQ_RESP_HDR_T RespHdr;
    887     RespHdr.cbSenseLen       = cbSense;
     887    RespHdr.cbSenseLen       = cbSense & UINT32_MAX;
    888888    RespHdr.uResidual        = cbResidual;
    889889    RespHdr.uStatusQualifier = 0;
     
    10111011        respHdr.uStatus    = SCSI_STATUS_CHECK_CONDITION;
    10121012        respHdr.uResponse  = VIRTIOSCSI_S_OVERRUN;
    1013         respHdr.uResidual  = pReq->cbDataIn;
     1013        respHdr.uResidual  = pReq->cbDataIn & UINT32_MAX;
    10141014
    10151015        virtioScsiR3ReqErr(pDevIns, pThis, pThisCC, pReq->qIdx, pReq->pDescChain, &respHdr, abSense,
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette