only report a successful download, if the downloading actually got past the headers
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4560 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
fc8348b5a5
commit
67d892ed05
1 changed files with 1 additions and 1 deletions
|
@ -388,7 +388,7 @@ __declspec(dllexport) void download (HWND parent,
|
||||||
lstrcpyn(url, get->geterrorstr(), sizeof(url));
|
lstrcpyn(url, get->geterrorstr(), sizeof(url));
|
||||||
error = url;
|
error = url;
|
||||||
} else if (st == 1) {
|
} else if (st == 1) {
|
||||||
if (sofar < cl)
|
if (sofar < cl || get->get_status () != 2)
|
||||||
error="download incomplete";
|
error="download incomplete";
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue