C4Group::GetFullName: Don't return an empty string for the root directory ("/")

scancodes-fix
Armin Burgmeier 2009-09-26 21:52:09 -04:00
parent ae37dddcbf
commit 5e2361af9d
1 changed files with 1 additions and 1 deletions

View File

@ -2469,7 +2469,7 @@ StdStrBuf C4Group::GetFullName() const
{
if (*str) SInsert(str, sep, 0, _MAX_PATH);
// Avoid double slash
if(SLen(pGroup->FileName) > 1 || pGroup->FileName[0] != '/')
if(pGroup == this || SLen(pGroup->FileName) > 1 || pGroup->FileName[0] != '/')
SInsert(str, pGroup->FileName, 0, _MAX_PATH);
if (pGroup->Status == GRPF_Folder) break; // Folder is assumed to have full path
}