VirtualBox

Changeset 84391 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 20, 2020 6:38:33 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

    r84390 r84391  
    18631863
    18641864    if (pThisCC->pDrv && fPromiscChanged)
     1865    {
    18651866        if (pThis->fPromiscuous | pThis->fAllMulticast)
     1867        {
    18661868            pThisCC->pDrv->pfnSetPromiscuousMode(pThisCC->pDrv, true);
     1869        }
    18671870        else
     1871        {
    18681872            pThisCC->pDrv->pfnSetPromiscuousMode(pThisCC->pDrv, false);
     1873        }
     1874    }
    18691875
    18701876    return VIRTIONET_OK;
     
    27532759    RT_NOREF(pThis);
    27542760
    2755 //    int rc = PDMDevHlpDriverAttach(pDevIns, 0, &pDevIns->IBase, &pThisCC->pDrvBase, "Network Port");
    27562761    int rc = PDMDevHlpDriverAttach(pDevIns, 0, &pThisCC->IBase, &pThisCC->pDrvBase, "Network Port");
    27572762    if (RT_SUCCESS(rc))
     
    27662771
    27672772    LEAVE_CRITICAL_SECTION;
    2768     return rc;
    2769 
    27702773    AssertRelease(!pThisCC->pDrvBase);
    27712774    return rc;
  • trunk/src/VBox/Devices/Storage/DevVirtioSCSI.cpp

    r84390 r84391  
    886886    REQ_RESP_HDR_T RespHdr;
    887887    RespHdr.cbSenseLen       = cbSense & UINT32_MAX;
    888     RespHdr.uResidual        = cbResidual;
     888    RespHdr.uResidual        = cbResidual & UINT32_MAX;
    889889    RespHdr.uStatusQualifier = 0;
    890890    RespHdr.uStatus          = bStatus;
     
    13381338        respHdr.uStatus    = SCSI_STATUS_CHECK_CONDITION;
    13391339        respHdr.uResponse  = VIRTIOSCSI_S_FAILURE;
    1340         respHdr.uResidual  = cbDataIn + cbDataOut;
     1340        respHdr.uResidual  = (cbDataIn + cbDataOut) & UINT32_MAX;
    13411341        virtioScsiR3ReqErr(pDevIns, pThis, pThisCC, qIdx, pDescChain, &respHdr, abSense, cbSenseCfg);
    13421342        virtioScsiR3FreeReq(pTarget, pReq);
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