Changeset 97743 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Dec 5, 2022 8:26:00 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp
r96598 r97743 434 434 if (pszDomain) 435 435 { 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) 438 437 rc = VERR_NO_MEMORY; 439 438 } 440 439 else 441 440 { 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) 445 442 rc = VERR_NO_MEMORY; 446 443 }
Note:
See TracChangeset
for help on using the changeset viewer.