VirtualBox

Ignore:
Timestamp:
Mar 11, 2022 6:24:17 PM (3 years ago)
Author:
vboxsync
Message:

Main: Guest Properties: notify lesteners that property was deleted (additional fixes in r150441, r150442, r150443, r150445), bugref:10185.

File:
1 edited

Legend:

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

    r93700 r94184  
    370370                    {
    371371                        Bstr aNextValue, aNextFlags;
     372                        BOOL aNextWasDeleted;
    372373                        gpcev->COMGETTER(Value)(aNextValue.asOutParam());
    373374                        gpcev->COMGETTER(Flags)(aNextFlags.asOutParam());
    374                         RTPrintf(GuestProp::tr("Name: %ls, value: %ls, flags: %ls\n"),
    375                                  aNextName.raw(), aNextValue.raw(), aNextFlags.raw());
     375                        gpcev->COMGETTER(FWasDeleted)(&aNextWasDeleted);
     376                        if (aNextWasDeleted)
     377                            RTPrintf(GuestProp::tr("Property %ls was deleted\n"), aNextName.raw());
     378                        else
     379                            RTPrintf(GuestProp::tr("Name: %ls, value: %ls, flags: %ls\n"),
     380                                     aNextName.raw(), aNextValue.raw(), aNextFlags.raw());
    376381                        fSignalled = true;
    377382                    }
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