summaryrefslogtreecommitdiff
path: root/windows
diff options
context:
space:
mode:
Diffstat (limited to 'windows')
-rw-r--r--windows/download.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/windows/download.c b/windows/download.c
index 8d3cc446a..463a8368c 100644
--- a/windows/download.c
+++ b/windows/download.c
@@ -71,8 +71,9 @@ gui_download_window_create(download_context *ctx, struct gui_window *gui)
messages_get("UnknownSize") :
human_friendly_bytesize(total_size);
- if (url_nice(nsurl_access(url), &filename, false) != NSERROR_OK)
+ if (nsurl_nice(url, &filename, false) != NSERROR_OK) {
filename = strdup(messages_get("UnknownFile"));
+ }
if (filename == NULL) {
warn_user(messages_get("NoMemory"), 0);
free(w);