From 67d892ed05404e2d2c3356c1a652114d5deaf095 Mon Sep 17 00:00:00 2001 From: kichik Date: Wed, 8 Mar 2006 20:36:49 +0000 Subject: [PATCH] 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 --- Contrib/NSISdl/nsisdl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Contrib/NSISdl/nsisdl.cpp b/Contrib/NSISdl/nsisdl.cpp index 670010d3..32caf80d 100644 --- a/Contrib/NSISdl/nsisdl.cpp +++ b/Contrib/NSISdl/nsisdl.cpp @@ -388,7 +388,7 @@ __declspec(dllexport) void download (HWND parent, lstrcpyn(url, get->geterrorstr(), sizeof(url)); error = url; } else if (st == 1) { - if (sofar < cl) + if (sofar < cl || get->get_status () != 2) error="download incomplete"; else {