VirtualBox

Changeset 97743 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Dec 5, 2022 8:26:00 PM (2 years ago)
Author:
vboxsync
Message:

VBoxService/VBoxServiceVMInfo: Addressed some @todos.

File:
1 edited

Legend:

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

    r96598 r97743  
    434434    if (pszDomain)
    435435    {
    436 /** @todo r=bird: RTStrAPrintf returns -1, not zero on failure!   */
    437         if (!RTStrAPrintf(&pszName, "%s%s@%s/%s", g_pszPropCacheValUser, pszUser, pszDomain, pszKey))
     436        if (RTStrAPrintf(&pszName, "%s%s@%s/%s", g_pszPropCacheValUser, pszUser, pszDomain, pszKey) < 0)
    438437            rc = VERR_NO_MEMORY;
    439438    }
    440439    else
    441440    {
    442 /** @todo r=bird: RTStrAPrintf returns -1, not zero on failure! You got it
    443  *        right 5 lines further down... */
    444         if (!RTStrAPrintf(&pszName, "%s%s/%s", g_pszPropCacheValUser, pszUser, pszKey))
     441        if (RTStrAPrintf(&pszName, "%s%s/%s", g_pszPropCacheValUser, pszUser, pszKey) < 0)
    445442            rc = VERR_NO_MEMORY;
    446443    }
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