VirtualBox

Changeset 17816 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Mar 13, 2009 12:42:06 PM (16 years ago)
Author:
vboxsync
Message:

Fix a long standing bug where incrementing the index counter was lost.

File:
1 edited

Legend:

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

    r17739 r17816  
    14131413
    14141414        CHECK_ERROR_RET(machine, COMGETTER(SharedFolders)(ComSafeArrayAsOutParam(folders)), rc);
    1415         ULONG index = 0;
    14161415
    14171416        for (size_t i = 0; i < folders.size(); ++i)
     
    14281427            if (details == VMINFO_MACHINEREADABLE)
    14291428            {
    1430                 RTPrintf("SharedFolderNameMachineMapping%d=\"%lS\"\n", index + 1,
     1429                RTPrintf("SharedFolderNameMachineMapping%zu=\"%lS\"\n", i + 1,
    14311430                         name.raw());
    1432                 RTPrintf("SharedFolderPathMachineMapping%d=\"%lS\"\n", index + 1,
     1431                RTPrintf("SharedFolderPathMachineMapping%zu=\"%lS\"\n", i + 1,
    14331432                         hostPath.raw());
    14341433            }
     
    14451444
    14461445        CHECK_ERROR_RET(console, COMGETTER(SharedFolders)(ComSafeArrayAsOutParam(folders)), rc);
    1447         ULONG index = 0;
    14481446
    14491447        for (size_t i = 0; i < folders.size(); ++i)
     
    14581456            if (details == VMINFO_MACHINEREADABLE)
    14591457            {
    1460                 RTPrintf("SharedFolderNameTransientMapping%d=\"%lS\"\n", index + 1,
     1458                RTPrintf("SharedFolderNameTransientMapping%zu=\"%lS\"\n", i + 1,
    14611459                         name.raw());
    1462                 RTPrintf("SharedFolderPathTransientMapping%d=\"%lS\"\n", index + 1,
     1460                RTPrintf("SharedFolderPathTransientMapping%zu=\"%lS\"\n", i + 1,
    14631461                         hostPath.raw());
    14641462            }
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