VirtualBox

Changeset 81349 in vbox


Ignore:
Timestamp:
Oct 18, 2019 11:18:27 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134062
Message:

Storage/DevVirtioSCSI.cpp: Fix burn due to unintialized vars

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevVirtioSCSI.cpp

    r81348 r81349  
    832832    AssertRC(rc);
    833833
    834     /* Masking used to deal with datatype size differences between APIs */
     834    /* Masking used to deal with datatype size differences between APIs (Windows complains otherwise) */
    835835    Assert(!(cbXfer & 0xffffffff00000000));
    836836    uint32_t cbXfer32 = cbXfer & 0xffffffff;
     
    13011301            }
    13021302
    1303             PVIRTIOSCSITARGET pTarget;
     1303            PVIRTIOSCSITARGET pTarget = NULL;
    13041304            if (uTarget < pThis->cTargets)
    13051305                pTarget = &pThis->paTargetInstances[uTarget];
     
    13591359            uint32_t uScsiLun = (pScsiCtrlAnQuery->uScsiLun[2] << 8 | pScsiCtrlAnQuery->uScsiLun[3]) & 0x3fff;
    13601360
    1361             PVIRTIOSCSITARGET pTarget;
     1361            PVIRTIOSCSITARGET pTarget = NULL;
    13621362            if (uTarget < pThis->cTargets)
    13631363                pTarget = &pThis->paTargetInstances[uTarget];
     
    14121412            }
    14131413
    1414             PVIRTIOSCSITARGET pTarget;
     1414            PVIRTIOSCSITARGET pTarget = NULL;
    14151415            if (uTarget < pThis->cTargets)
    14161416                pTarget = &pThis->paTargetInstances[uTarget];
Note: See TracChangeset for help on using the changeset viewer.

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