summaryrefslogtreecommitdiff
path: root/amiga/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'amiga/file.c')
-rw-r--r--amiga/file.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/amiga/file.c b/amiga/file.c
index 733c9c780..e7f1fd356 100644
--- a/amiga/file.c
+++ b/amiga/file.c
@@ -46,8 +46,7 @@
static struct Hook aslhookfunc;
-static ULONG ami_file_asl_mime_hook(struct Hook *mh,
- struct FileRequester *fr, struct AnchorPathOld *ap)
+HOOKF(ULONG, ami_file_asl_mime_hook, struct FileRequester *, fr, struct AnchorPathOld *)
{
char fname[1024];
BOOL ret = FALSE;
@@ -56,10 +55,10 @@ static ULONG ami_file_asl_mime_hook(struct Hook *mh,
lwc_error lerror;
content_type ct;
- if(ap->ap_Info.fib_DirEntryType > 0) return(TRUE);
+ if(msg->ap_Info.fib_DirEntryType > 0) return(TRUE);
strcpy(fname,fr->fr_Drawer);
- AddPart(fname,ap->ap_Info.fib_FileName,1024);
+ AddPart(fname, msg->ap_Info.fib_FileName,1024);
mt = strdup(fetch_filetype(fname));
lerror = lwc_intern_string(mt, strlen(mt), &lwc_mt);