Changeset 50448 in vbox
- Timestamp:
- Feb 13, 2014 2:09:25 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp
r50026 r50448 797 797 798 798 /* Build the user list. */ 799 if (RT_SUCCESS(rc)) 800 rc = RTStrAllocEx(&pszUserList, cchUserList + 1); 801 if (RT_SUCCESS(rc)) 802 { 803 char *psz = pszUserList; 804 for (uint32_t i = 0; i < cUsersInList; i++) 805 { 806 if (i != 0) 807 *psz++ = ','; 808 size_t cch = strlen(papszUsers[i]); 809 memcpy(psz, papszUsers[i], cch); 810 psz += cch; 811 } 812 *psz = '\0'; 799 if (cchUserList > 0) 800 { 801 if (RT_SUCCESS(rc)) 802 rc = RTStrAllocEx(&pszUserList, cchUserList + 1); 803 if (RT_SUCCESS(rc)) 804 { 805 char *psz = pszUserList; 806 for (uint32_t i = 0; i < cUsersInList; i++) 807 { 808 if (i != 0) 809 *psz++ = ','; 810 size_t cch = strlen(papszUsers[i]); 811 memcpy(psz, papszUsers[i], cch); 812 psz += cch; 813 } 814 *psz = '\0'; 815 } 813 816 } 814 817
Note:
See TracChangeset
for help on using the changeset viewer.

