fixed bug #1338423 - SetOverwrite ifdiff fails with FAT
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4373 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
21ba41afb9
commit
96d7f01ae1
1 changed files with 8 additions and 0 deletions
|
@ -5925,6 +5925,10 @@ int CEXEBuild::add_file(const string& dir, const string& file, int attrib, const
|
|||
FILETIME ft;
|
||||
if (GetFileTime(hFile,NULL,NULL,&ft))
|
||||
{
|
||||
// FAT write time has a resolution of 2 seconds
|
||||
PULONGLONG fti = (PULONGLONG) &ft;
|
||||
*fti -= *fti % 20000000;
|
||||
|
||||
ent.offsets[3]=ft.dwLowDateTime;
|
||||
ent.offsets[4]=ft.dwHighDateTime;
|
||||
}
|
||||
|
@ -5942,6 +5946,10 @@ int CEXEBuild::add_file(const string& dir, const string& file, int attrib, const
|
|||
long long ll;
|
||||
};
|
||||
ll = (st.st_mtime * 10000000LL) + 116444736000000000LL;
|
||||
|
||||
// FAT write time has a resolution of 2 seconds
|
||||
ll -= ll % 20000000;
|
||||
|
||||
ent.offsets[3] = words.l;
|
||||
ent.offsets[4] = words.h;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue