summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-10-20 11:54:43 (GMT)
committer Vincent Sanders <vince@kyllikki.org>2016-10-20 11:54:43 (GMT)
commit90541333c052b1c89a3f97c1adecf62aeb178668 (patch)
tree9d229c6d3848eec3c588d9b3f41ed207781e7d43
parent5e1236a8e7f31d8ded05b5e710009145d79dea6e (diff)
downloadnetsurf-90541333c052b1c89a3f97c1adecf62aeb178668.tar.gz
netsurf-90541333c052b1c89a3f97c1adecf62aeb178668.tar.bz2
remove unused variable in windows frontend
-rw-r--r--frontends/windows/download.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/windows/download.c b/frontends/windows/download.c
index 9c8cefa..fff47ac 100644
--- a/frontends/windows/download.c
+++ b/frontends/windows/download.c
@@ -189,18 +189,18 @@ gui_download_window_create(download_context *ctx, struct gui_window *gui)
BOOL CALLBACK nsws_download_event_callback(HWND hwnd, UINT msg, WPARAM wparam,
LPARAM lparam)
{
- HWND sub;
- switch(msg){
+ switch(msg) {
case WM_INITDIALOG:
- sub = GetDlgItem(hwnd, IDC_DOWNLOAD_LABEL);
nsws_download_update_label((void *)download1);
nsws_download_update_progress((void *)download1);
return TRUE;
+
case WM_COMMAND:
switch(LOWORD(wparam)) {
case IDOK:
if (download1->downloaded != download1->size)
return TRUE;
+
case IDCANCEL:
nsws_download_clear_data(download1);
download1 = NULL;