From 3a35294a0ed73266248c9ff12a436478197c575f Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 13 Oct 2013 12:01:11 +0100 Subject: Fix adding to hotlist from context menu --- amiga/context_menu.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/amiga/context_menu.c b/amiga/context_menu.c index 03672ef56..c951b0147 100644 --- a/amiga/context_menu.c +++ b/amiga/context_menu.c @@ -767,12 +767,11 @@ static uint32 ami_context_menu_hook(struct Hook *hook,Object *item,APTR reserved case CMID_URLHOTLIST: case CMID_PAGEHOTLIST: { - nsurl *nsurl; - if (nsurl_create(url, &nsurl) != NSERROR_OK) + if (nsurl_create(userdata, &url) != NSERROR_OK) break; - hotlist_add_url(nsurl); - nsurl_unref(nsurl); + hotlist_add_url(url); + nsurl_unref(url); } break; -- cgit v1.2.3