VirtualBox

Changeset 24024 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 23, 2009 11:53:22 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53869
Message:

Main and VBoxManage/GuestProperties: fix deleting GuestProperties in VBoxManage, part 2

Location:
trunk/src/VBox
Files:
2 edited

Legend:

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

    r23875 r24024  
    310310
    311311        if (!pszValue && !pszFlags)
    312             CHECK_ERROR(machine, SetGuestPropertyValue(Bstr(pszName), Bstr()));
     312            CHECK_ERROR(machine, SetGuestPropertyValue(Bstr(pszName), Bstr("")));
    313313        else if (!pszFlags)
    314314            CHECK_ERROR(machine, SetGuestPropertyValue(Bstr(pszName), Bstr(pszValue)));
  • trunk/src/VBox/Main/MachineImpl.cpp

    r23973 r24024  
    33633363                rc = E_FAIL;
    33643364            else
    3365                 rc = directControl->AccessGuestProperty(aName, aValue, aFlags,
    3366                                                         true /* isSetter */,
    3367                                                         &dummy, &dummy64, &dummy);
     3365                rc = directControl->AccessGuestProperty
     3366                             (aName, *aValue ? aValue : NULL, aFlags,
     3367                              true /* isSetter */, &dummy, &dummy64, &dummy);
    33683368        }
    33693369    }
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