Added GetModDate and GetFileSize. Fixed a crash with a strcmp of null.

git-svn-id: svn://10.0.0.236/trunk@23564 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mcmullen%netscape.com
1999-03-10 21:02:58 +00:00
parent 19c53c8fda
commit bdbf667fac
10 changed files with 262 additions and 66 deletions

View File

@@ -776,18 +776,22 @@ PRBool nsFileSpec::operator == (const nsFileSpec& inOther) const
if ( inOther.mSpec.vRefNum == mSpec.vRefNum &&
inOther.mSpec.parID == mSpec.parID &&
EqualString(inOther.mSpec.name, mSpec.name, false, false))
return (PR_TRUE);
#elif XP_PC
// windows does not care about case.
if (_stricmp(mPath, inOther.mPath ) == 0)
return (PR_TRUE);
return PR_TRUE;
#else
if (strcmp(mPath, inOther.mPath ) == 0)
return (PR_TRUE);
if (!mPath)
return inOther.mPath == nsNull;
if (!inOther.mPath)
return PR_FALSE;
#if defined(XP_PC)
// windows does not care about case.
if (_stricmp(mPath, inOther.mPath ) == 0)
return PR_TRUE;
#else
if (strcmp(mPath, inOther.mPath ) == 0)
return PR_TRUE;
#endif
#endif
return (PR_FALSE);
return PR_FALSE;
}
//----------------------------------------------------------------------------------------