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:
pavlov%netscape.com
1999-08-24 18:32:06 +00:00
parent 131d318ad4
commit 30ec336bcb

View File

@@ -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);
}