Mac needs special LONG LONG support.

git-svn-id: svn://10.0.0.236/trunk@68871 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dougt%netscape.com
2000-05-09 19:59:06 +00:00
parent 7283a4ae33
commit 46df6c9b5b

View File

@@ -798,8 +798,14 @@ nsJAR::RestoreModTime(nsZipItem *aItem, nsIFile *aExtractedFile)
if (timestr)
{
if (PR_SUCCESS == PR_ParseTimeString(timestr, PR_FALSE, &prtime))
{
PRTime conversion = LL_ZERO;
PRTime newTime = LL_ZERO;
LL_I2L(conversion, PR_USEC_PER_SEC);
LL_DIV(newTime, prtime, conversion);
// nsIFile needs usecs.
rv = aExtractedFile->SetLastModificationDate(prtime / PR_USEC_PER_MSEC);
rv = aExtractedFile->SetLastModificationDate(newTime);
}
JAR_NULLFREE(timestr);
}