bug 240192, nsLocalFileUnix doesn't work with files larger than 2 GB

r+sr=darin
This commit is contained in:
cbiesinger@web.de
2004-04-16 19:01:58 +00:00
parent a58e144a90
commit e8832a28c5
3 changed files with 14 additions and 2 deletions

View File

@@ -1063,9 +1063,12 @@ nsLocalFile::GetFileSize(PRInt64 *aFileSize)
}
#endif
/* XXX autoconf for and use stat64 if available */
if (!S_ISDIR(mCachedStat.st_mode)) {
#ifdef STAT_IS_64
*aFileSize = mCachedStat.st_size;
#else
LL_UI2L(*aFileSize, (PRUint32)mCachedStat.st_size);
#endif
}
return NS_OK;
}