isHidden was returning backwards results
git-svn-id: svn://10.0.0.236/trunk@44309 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -187,13 +187,13 @@ PRBool nsFileSpec::IsDirectory() const
|
||||
PRBool nsFileSpec::IsHidden() const
|
||||
//----------------------------------------------------------------------------------------
|
||||
{
|
||||
PRBool hidden = PR_TRUE;
|
||||
PRBool hidden = PR_FALSE;
|
||||
char *leafname = GetLeafName();
|
||||
if (nsnull != leafname)
|
||||
{
|
||||
if ((!strcmp(leafname, ".")) || (!strcmp(leafname, "..")))
|
||||
{
|
||||
hidden = PR_FALSE;
|
||||
hidden = PR_TRUE;
|
||||
}
|
||||
nsCRT::free(leafname);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user