fixed bug #1349853 - zip2exe ignores zip timestamps
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4385 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
db0f18c570
commit
c4ebaf5885
1 changed files with 16 additions and 0 deletions
|
@ -5,6 +5,9 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
|
version 0.34
|
||||||
|
* preserve zip timestamps
|
||||||
|
|
||||||
version 0.33
|
version 0.33
|
||||||
* Added solid compression checkbox
|
* Added solid compression checkbox
|
||||||
|
|
||||||
|
@ -237,6 +240,19 @@ int tempzip_make(HWND hwndDlg, char *fn)
|
||||||
} while (l > 0);
|
} while (l > 0);
|
||||||
|
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
|
||||||
|
{
|
||||||
|
// set file time
|
||||||
|
HANDLE hf = CreateFile(out_filename, GENERIC_WRITE, 0, 0, OPEN_ALWAYS, 0, 0);
|
||||||
|
if (hf != INVALID_HANDLE_VALUE)
|
||||||
|
{
|
||||||
|
FILETIME ft, lft;
|
||||||
|
DosDateTimeToFileTime(HIWORD(info.dosDate), LOWORD(info.dosDate), &ft);
|
||||||
|
LocalFileTimeToFileTime(&ft, &lft);
|
||||||
|
SetFileTime(hf, 0, 0, &lft);
|
||||||
|
CloseHandle(hf);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue