| 1292 | |
| 1293 | |
| 1294 | LPTSTR ResultToken::Malloc(LPTSTR aValue, size_t aLength) |
| 1295 | { |
| 1296 | if (aLength == -1) |
| 1297 | aLength = _tcslen(aValue); |
| 1298 | if ( !(mem_to_free = tmalloc(aLength + 1)) ) |
| 1299 | return NULL; |
| 1300 | symbol = SYM_STRING; |
| 1301 | marker_length = aLength; |
| 1302 | return tmemcpy(marker = mem_to_free, aValue, aLength + 1); // +1 to include the null-terminator. |
| 1303 | } |
| 1304 | |
| 1305 | |
| 1306 |
no outgoing calls
no test coverage detected