1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Fixed GetActualPath where path begins with a slash

This commit is contained in:
Brian Fiete 2019-09-23 07:39:53 -07:00
parent 9465247dfe
commit e65e4049fa

View file

@ -3161,6 +3161,13 @@ BFP_EXPORT void BFP_CALLTYPE BfpFile_GetActualPath(const char* inPathC, char* ou
}
}
if ((i == 0) && (length >= 1) &&
((inPath[0] == DIR_SEP_CHAR) || (inPath[1] == DIR_SEP_CHAR_ALT)))
{
i++; // start after initial slash
outPath.Append(DIR_SEP_CHAR);
}
int32 lastComponentStart = i;
bool addSeparator = false;
String subName;