- Timestamp:
- Feb 24, 2010 2:45:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/GuestProperties/service.cpp
r26603 r26749 793 793 */ 794 794 char pszPatterns[MAX_PATTERN_LEN]; 795 for (unsigned i = 0; i < cchPatterns - 1; ++i) 796 if (pcchPatterns[i] != '\0') 797 pszPatterns[i] = pcchPatterns[i]; 798 else 799 pszPatterns[i] = '|'; 800 pszPatterns[cchPatterns - 1] = '\0'; 795 if (RT_SUCCESS(rc)) 796 { 797 for (unsigned i = 0; i < cchPatterns - 1; ++i) 798 if (pcchPatterns[i] != '\0') 799 pszPatterns[i] = pcchPatterns[i]; 800 else 801 pszPatterns[i] = '|'; 802 pszPatterns[cchPatterns - 1] = '\0'; 803 } 801 804 802 805 /* … … 827 830 } 828 831 } 829 buffer.append(4, '\0'); /* The final terminators */ 832 if (RT_SUCCESS(rc)) 833 buffer.append(4, '\0'); /* The final terminators */ 830 834 831 835 /*
Note:
See TracChangeset
for help on using the changeset viewer.