mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1110585 - Inconsistent timestamp in storage metadata file; r=bent
This commit is contained in:
parent
98173efa0b
commit
8654bbb8b5
@ -878,6 +878,10 @@ GetLastModifiedTime(nsIFile* aFile, int64_t* aTimestamp)
|
||||
return rv;
|
||||
}
|
||||
|
||||
// Need to convert from milliseconds to microseconds.
|
||||
MOZ_ASSERT((INT64_MAX / PR_USEC_PER_MSEC) > timestamp);
|
||||
timestamp *= int64_t(PR_USEC_PER_MSEC);
|
||||
|
||||
if (timestamp > *aTimestamp) {
|
||||
*aTimestamp = timestamp;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user