Lines Matching refs:currentLen
441 int currentLen = GetCurrentDirectory(0, NULL);
443 if (currentLen <= 0) {
448 result = malloc(currentLen + pathLen + 2);
450 GetCurrentDirectory(currentLen+1, result);
451 if (currentLen == 0 || result[currentLen-1] != '\\') {
452 result[currentLen++] = '\\';
454 memcpy(result + currentLen, path, pathLen+1);
462 int currentLen;
472 currentLen = strlen(currentDir);
473 result = malloc(currentLen + pathLen + 2);
475 memcpy(result, currentDir, currentLen);
476 if (currentLen == 0 || result[currentLen-1] != '/') {
477 result[currentLen++] = '/';
479 memcpy(result + currentLen, path, pathLen+1);