From c9bd6fa9fce386526ea1327adea56128648f3355 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 9 Aug 2004 16:11:58 +0000 Subject: [project @ 2004-08-09 16:11:58 by jmb] Rework the interface of the URL handing module to allow for multiple error types. Modify save_complete URL rewriting appropriately. svn path=/import/netsurf/; revision=1206 --- riscos/window.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'riscos/window.c') diff --git a/riscos/window.c b/riscos/window.c index ab945cb0d..a0715738d 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -1235,6 +1235,7 @@ bool ro_gui_window_keypress(struct gui_window *g, int key, bool toolbar) char *url; os_error *error; wimp_pointer pointer; + url_func_result res; error = xwimp_get_pointer_info(&pointer); if (error) { @@ -1361,8 +1362,8 @@ bool ro_gui_window_keypress(struct gui_window *g, int key, bool toolbar) case wimp_KEY_RETURN: if (!toolbar) break; - url = url_normalize(g->url); - if (url) { + res = url_normalize(g->url, &url); + if (res == URL_FUNC_OK) { gui_window_set_url(g, url); browser_window_go(g->bw, url); free(url); -- cgit v1.2.3