VirtualBox

Changeset 48121 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 28, 2013 11:19:16 AM (11 years ago)
Author:
vboxsync
Message:

Main: don't log the medium type of host DVD drives

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r47991 r48121  
    35543554        }
    35553555
    3556         if (   pMedium
    3557             && (   lType == DeviceType_DVD
    3558                 || lType == DeviceType_Floppy))
    3559         {
    3560             /*
    3561              * Informative logging.
    3562              */
    3563             ComPtr<IMediumFormat> pMediumFormat;
    3564             hrc = pMedium->COMGETTER(MediumFormat)(pMediumFormat.asOutParam());             H();
    3565             ULONG uCaps = 0;
    3566             com::SafeArray <MediumFormatCapabilities_T> mediumFormatCap;
    3567             hrc = pMediumFormat->COMGETTER(Capabilities)(ComSafeArrayAsOutParam(mediumFormatCap));     H();
    3568 
    3569             for (ULONG j = 0; j < mediumFormatCap.size(); j++)
    3570                 uCaps |= mediumFormatCap[j];
    3571 
    3572             if (uCaps & MediumFormatCapabilities_File)
    3573             {
     3556        if (pMedium)
     3557        {
     3558            BOOL fHostDrive;
     3559            hrc = pMedium->COMGETTER(HostDrive)(&fHostDrive);                               H();
     3560            if (  (   lType == DeviceType_DVD
     3561                   || lType == DeviceType_Floppy)
     3562                && !fHostDrive)
     3563            {
     3564                /*
     3565                 * Informative logging.
     3566                 */
    35743567                Bstr strFile;
    35753568                hrc = pMedium->COMGETTER(Location)(strFile.asOutParam());                   H();
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