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/Additions/common/VBoxControl/VBoxControl.cpp

    r93300 r94184  
    15151515    uint64_t u64TimestampOut = 0;
    15161516    char *pszFlags = NULL;
     1517    bool fWasDeleted = false;
    15171518    /* The buffer for storing the data and its initial size.  We leave a bit
    15181519     * of space here in case the maximum values are raised. */
     
    15381539                                     u64TimestampIn, u32Timeout,
    15391540                                     &pszName, &pszValue, &u64TimestampOut,
    1540                                      &pszFlags, &cbBuf);
     1541                                     &pszFlags, &cbBuf, &fWasDeleted);
    15411542        }
    15421543        if (VERR_BUFFER_OVERFLOW == rc)
     
    15621563    else if (RT_SUCCESS(rc))
    15631564    {
    1564         RTPrintf("Name: %s\n", pszName);
    1565         RTPrintf("Value: %s\n", pszValue);
    1566         RTPrintf("Timestamp: %lld ns\n", u64TimestampOut);
    1567         RTPrintf("Flags: %s\n", pszFlags);
     1565        if (fWasDeleted)
     1566        {
     1567            RTPrintf("Property %s was deleted\n", pszName);
     1568        }
     1569        else
     1570        {
     1571            RTPrintf("Name: %s\n", pszName);
     1572            RTPrintf("Value: %s\n", pszValue);
     1573            RTPrintf("Timestamp: %lld ns\n", u64TimestampOut);
     1574            RTPrintf("Flags: %s\n", pszFlags);
     1575        }
    15681576    }
    15691577
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