VirtualBox

Changeset 79743 in vbox for trunk/include


Ignore:
Timestamp:
Jul 12, 2019 5:08:07 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
132106
Message:

Attempt to fix burns

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vd-ifs.h

    r79742 r79743  
    11481148 * @param   pszName     Name of property
    11491149 * @param   pszValue    String value to assign to property
    1150  */
    1151 
    1152 DECLINLINE(int) VDCFGUpdateU64(PVDINTERFACECONFIG pCfgIf, bool fCreate, const char *pszName, uint64_t u64)
    1153 {
    1154      char *pszValue;
    1155      RTStrAPrintf(&pszValue, "%ul", u64);
    1156      int rc = VDCFGUpdate(pCfgIf, fCreate, pszName, pszValue);
    1157      RTMemFree(pszValue);
     1150 * @param   u64Value    64-bit unsigned value to save with property.
     1151 */
     1152
     1153DECLINLINE(int) VDCFGUpdateU64(PVDINTERFACECONFIG pCfgIf, bool fCreate, const char *pszName, uint64_t u64Value)
     1154{
     1155     int rc = 0;
     1156     char pszValue[11];
     1157     (void) RTStrPrintf(pszValue, sizeof(pszValue), "%ul", u64Value);
     1158     rc = VDCFGUpdate(pCfgIf, fCreate, pszName, pszValue);
    11581159     return rc;
    11591160}
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