VirtualBox

Changeset 37401 in vbox


Ignore:
Timestamp:
Jun 9, 2011 9:16:26 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72198
Message:

VBoxManageInfo.cpp: build fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r37395 r37401  
    10091009                            com::SafeArray<BSTR> aProperties;
    10101010                            com::SafeArray<BSTR> aValues;
    1011                             if (SUCCEEDED(nic->COMGETTER(Properties)(NULL,
    1012                                                                      ComSafeArrayAsOutParam(aProperties),
    1013                                                                      ComSafeArrayAsOutParam(aValues))))
     1011                            rc = nic->GetProperties(NULL,
     1012                                                    ComSafeArrayAsOutParam(aProperties),
     1013                                                    ComSafeArrayAsOutParam(aValues));
     1014                            if (SUCCEEDED(rc))
    10141015                            {
    10151016                                strAttachment += " { ";
    1016                                 unsigned i;
    1017                                 for (i = 0; i < aProperties.size(); ++i)
    1018                                 {
    1019                                     strAttachment += Utf8StrFmt("%lS='%lS'", aProperties[i], aValues[i]);
    1020                                     if (i != aProperties.size() - 1)
    1021                                         strAttachment += ", ";
    1022                                 }
     1017                                for (unsigned i = 0; i < aProperties.size(); ++i)
     1018                                    strAttachment += Utf8StrFmt(!i ? "%lS='%lS'" : ", %lS='%lS'",
     1019                                                                aProperties[i], aValues[i]);
    10231020                                strAttachment += " }";
    10241021                            }
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