diff --git a/mozilla/xpcom/components/nsRepository.cpp b/mozilla/xpcom/components/nsRepository.cpp index 6218f37d615..f2987735e77 100644 --- a/mozilla/xpcom/components/nsRepository.cpp +++ b/mozilla/xpcom/components/nsRepository.cpp @@ -285,11 +285,14 @@ static nsresult platformMarkNoComponents(nsDll *dll) } PRTime lastModTime = dll->GetLastModifiedTime(); - PRUint64 fileSize = dll->GetSize(); + PRUint32 fileSize32 = dll->GetSize(); + PRUint64 fileSize64; + LL_UI2L(filesize64, filesize32); + NR_RegSetEntry(hreg, key, "LastModTimeStamp", REGTYPE_ENTRY_BYTES, &lastModTime, sizeof(lastModTime)); NR_RegSetEntry(hreg, key, "FileSize", REGTYPE_ENTRY_BYTES, - &fileSize, sizeof(fileSize)); + &fileSize64, sizeof(fileSize64)); char *ncomponentsString = "0"; diff --git a/mozilla/xpcom/src/nsRepository.cpp b/mozilla/xpcom/src/nsRepository.cpp index 6218f37d615..f2987735e77 100644 --- a/mozilla/xpcom/src/nsRepository.cpp +++ b/mozilla/xpcom/src/nsRepository.cpp @@ -285,11 +285,14 @@ static nsresult platformMarkNoComponents(nsDll *dll) } PRTime lastModTime = dll->GetLastModifiedTime(); - PRUint64 fileSize = dll->GetSize(); + PRUint32 fileSize32 = dll->GetSize(); + PRUint64 fileSize64; + LL_UI2L(filesize64, filesize32); + NR_RegSetEntry(hreg, key, "LastModTimeStamp", REGTYPE_ENTRY_BYTES, &lastModTime, sizeof(lastModTime)); NR_RegSetEntry(hreg, key, "FileSize", REGTYPE_ENTRY_BYTES, - &fileSize, sizeof(fileSize)); + &fileSize64, sizeof(fileSize64)); char *ncomponentsString = "0";