VirtualBox

Ignore:
Timestamp:
Apr 20, 2010 2:16:20 PM (15 years ago)
Author:
vboxsync
Message:

VBoxManageControlVM: use IGuest::SetMemoryBalloonSize for changing the balloon size as this method calls IMachine::SetMemoryBalloonSize(). This reverts r59756.

File:
1 edited

Legend:

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

    r28047 r28528  
    783783                break;
    784784            }
    785             CHECK_ERROR(machine, COMSETTER(MemoryBalloonSize)(uVal));
     785            /* guest is running; update IGuest */
     786            ComPtr <IGuest> guest;
     787            rc = console->COMGETTER(Guest)(guest.asOutParam());
     788            if (SUCCEEDED(rc))
     789                CHECK_ERROR(guest, COMSETTER(MemoryBalloonSize)(uVal));
    786790        }
    787791        else if (!strcmp(a->argv[1], "teleport"))
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