Added /TIMEOUT= option
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1047 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
1e9a37e5be
commit
7cc613e50f
3 changed files with 7 additions and 0 deletions
|
@ -355,6 +355,11 @@ __declspec(dllexport) void download (HWND parent,
|
|||
g_stacktop = stacktop;
|
||||
|
||||
popstring (filename);
|
||||
lstrcpyn(buf, filename, 10);
|
||||
if (!lstrcmp(buf, "/TIMEOUT=")) {
|
||||
g_timeout_ms=my_atoi(filename+9);
|
||||
popstring (filename);
|
||||
}
|
||||
popstring (url);
|
||||
|
||||
HANDLE hFile = CreateFile(filename,GENERIC_WRITE,FILE_SHARE_READ,NULL,CREATE_ALWAYS,0,NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue