Changeset 84160 in vbox for trunk/src/VBox/Additions
- Timestamp:
- May 6, 2020 11:03:25 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp
r84154 r84160 1055 1055 pStartupInfo->psz##a_Str = RTStrAlloc(a_cb); \ 1056 1056 AssertPtrBreak(pStartupInfo->psz##a_Str); \ 1057 AssertBreak((uint32_t)a_cb == a_cb); \ 1057 1058 pStartupInfo->cb##a_Str = (uint32_t)a_cb; \ 1058 1059 } … … 1146 1147 pStartupInfoDup->psz##a_Str = (char *)RTStrDup(pStartupInfo->psz##a_Str); \ 1147 1148 AssertPtrBreak(pStartupInfoDup->psz##a_Str); \ 1148 pStartupInfoDup->cb##a_Str = strlen(pStartupInfoDup->psz##a_Str) + 1 /* Include terminator */; \ 1149 size_t cbStr = strlen(pStartupInfoDup->psz##a_Str) + 1 /* Include terminator */; \ 1150 AssertBreak((uint32_t)cbStr == cbStr); \ 1151 pStartupInfoDup->cb##a_Str = (uint32_t)cbStr; \ 1149 1152 } 1150 1153 DUP_STR(User);
Note:
See TracChangeset
for help on using the changeset viewer.