Fixed bug item #656371
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1980 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
075a02d3bb
commit
1e006112cf
2 changed files with 5 additions and 5 deletions
|
@ -209,6 +209,7 @@ __declspec(dllexport) void download (HWND parent,
|
|||
|
||||
g_hwndProgressBar = GetDlgItem (g_dialog, IDC_PROGRESS1);
|
||||
|
||||
JNL_HTTPGet *get;
|
||||
char *error=NULL;
|
||||
|
||||
{
|
||||
|
@ -245,7 +246,7 @@ __declspec(dllexport) void download (HWND parent,
|
|||
}
|
||||
|
||||
DWORD start_time=GetTickCount();
|
||||
JNL_HTTPGet *get=new JNL_HTTPGet(JNL_CONNECTION_AUTODNS,16384,(p&&p[0])?p:NULL);
|
||||
get=new JNL_HTTPGet(JNL_CONNECTION_AUTODNS,16384,(p&&p[0])?p:NULL);
|
||||
int st;
|
||||
int has_printed_headers = 0;
|
||||
int cl;
|
||||
|
@ -374,8 +375,6 @@ __declspec(dllexport) void download (HWND parent,
|
|||
|
||||
}
|
||||
|
||||
delete get;
|
||||
|
||||
WSACleanup();
|
||||
}
|
||||
|
||||
|
@ -394,7 +393,7 @@ __declspec(dllexport) void download (HWND parent,
|
|||
}
|
||||
|
||||
if (g_cancelled) {
|
||||
setuservariable(INST_0, "cancel");
|
||||
setuservariable(INST_0, "cancel");
|
||||
DeleteFile(filename);
|
||||
} else if (error == NULL) {
|
||||
setuservariable(INST_0, "success");
|
||||
|
@ -402,7 +401,8 @@ __declspec(dllexport) void download (HWND parent,
|
|||
DeleteFile(filename);
|
||||
setuservariable(INST_0, error);
|
||||
}
|
||||
if (error) GlobalFree(error);
|
||||
|
||||
delete get;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue