Changeset 63607 in vbox for trunk/include
- Timestamp:
- Aug 22, 2016 10:48:27 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 110313
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/bldprog-strtab.h
r59728 r63607 77 77 * Could be compressed, decompress it. 78 78 */ 79 const char *pchSrc = &pStrTab->pchStrTab[offString]; 79 char * const pchDstStart = pszDst; 80 const char *pchSrc = &pStrTab->pchStrTab[offString]; 80 81 while (cchString-- > 0) 81 82 { … … 124 125 AssertReturn(cbDst > 0, VERR_BUFFER_OVERFLOW); 125 126 *pszDst = '\0'; 126 return VINF_SUCCESS;127 return pszDst - pchDstStart; 127 128 } 128 129 … … 133 134 memcpy(pszDst, &pStrTab->pchStrTab[offString], cchString); 134 135 pszDst[cchString] = '\0'; 135 return VINF_SUCCESS;136 return (ssize_t)cchString; 136 137 } 137 138
Note:
See TracChangeset
for help on using the changeset viewer.