summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2014-02-19 17:51:17 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2014-02-19 17:51:17 +0000
commit69b61198f28a510eba34eca747e8d5eacfee4a0a (patch)
tree2b994313cbe6467f3682c15f090a93b6e32ece0b
parent6bcd221d0d3946abfddf40a7c73a8d9619b0ff78 (diff)
downloadnetsurf-69b61198f28a510eba34eca747e8d5eacfee4a0a.tar.gz
netsurf-69b61198f28a510eba34eca747e8d5eacfee4a0a.tar.bz2
Return 1 if help closed.
-rw-r--r--amiga/agclass/amigaguide_class.c1
-rwxr-xr-xamiga/help.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/amiga/agclass/amigaguide_class.c b/amiga/agclass/amigaguide_class.c
index 815071736..9d69e96c2 100644
--- a/amiga/agclass/amigaguide_class.c
+++ b/amiga/agclass/amigaguide_class.c
@@ -368,6 +368,7 @@ uint32 agm_process(Class *cl, Object *o, Msg msg)
{
case ShutdownMsgID:
agm_close(cl, o, msg);
+ retVal = 1L;
break;
default:
diff --git a/amiga/help.c b/amiga/help.c
index a2e4f05a5..8914440be 100755
--- a/amiga/help.c
+++ b/amiga/help.c
@@ -78,6 +78,6 @@ ULONG ami_help_signal(void)
void ami_help_process(void)
{
ULONG ret = IDoMethod(AmigaGuideObject, AGM_PROCESS, NULL);
- if(ret == NULL) ami_help_free();
+ if(ret) ami_help_free();
}