VirtualBox

Changeset 31893 in vbox for trunk


Ignore:
Timestamp:
Aug 24, 2010 8:08:32 AM (14 years ago)
Author:
vboxsync
Message:

VBoxService/PropCache: Bugfix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServicePropCache.cpp

    r31881 r31893  
    9999        if (RTStrAPrintfV(&pszValue, pszValueFormat, va) >= 0)
    100100        {
    101             /*
    102              * Because a value can be temporary we have to make sure it also
    103              * gets deleted when the property cache did not have the chance to
    104              * gracefully clean it up (due to a hard VM reset etc), so set this
    105              * guest property using the TRANSIENT flag.
    106              */
    107             rc = VbglR3GuestPropWrite(u32ClientId, pszName, pszValue,
    108                                         (fFlags & VBOXSERVICEPROPCACHEFLAG_TEMPORARY)
    109                                       ? "TRANSIENT"
    110                                       : NULL);
     101            if (fFlags & VBOXSERVICEPROPCACHEFLAG_TEMPORARY)
     102            {
     103                /*
     104                 * Because a value can be temporary we have to make sure it also
     105                 * gets deleted when the property cache did not have the chance to
     106                 * gracefully clean it up (due to a hard VM reset etc), so set this
     107                 * guest property using the TRANSIENT flag.
     108                 */
     109                rc = VbglR3GuestPropWrite(u32ClientId, pszName, pszValue, "TRANSIENT");
     110            }
     111            else
     112                rc = VbglR3GuestPropWriteValue(u32ClientId, pszName, pszValue);
    111113            RTStrFree(pszValue);
    112114        }
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