From 7e807a140a739c683fdebb4e6952f4a1f4402345 Mon Sep 17 00:00:00 2001 From: jmcmullan Date: Tue, 23 Jul 2013 01:40:22 +0000 Subject: [PATCH] emul-handler: fh_Arg1 should be the only element of struct FileHandle touched during open. Signed-off-by: Jason S. McMullan git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@47752 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- arch/all-hosted/filesys/emul_handler/emul_handler.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/all-hosted/filesys/emul_handler/emul_handler.c b/arch/all-hosted/filesys/emul_handler/emul_handler.c index 898b50f9d9..c8d9898f8f 100644 --- a/arch/all-hosted/filesys/emul_handler/emul_handler.c +++ b/arch/all-hosted/filesys/emul_handler/emul_handler.c @@ -738,8 +738,6 @@ static void handlePacket(struct emulbase *emulbase, struct filehandle *fhv, stru if (Res2 == 0) { - memset(f, 0, sizeof(*f)); - f->fh_Type = mp; f->fh_Arg1 = (SIPTR)fh2; if (fh2 != fhv) fh2->locks++; @@ -930,8 +928,7 @@ static void handlePacket(struct emulbase *emulbase, struct filehandle *fhv, stru fl = BADDR(dp->dp_Arg2); DCMD(bug("[emul] %p ACTION_FH_FROM_LOCK: %p, lock %p\n", fhv, fh, fh2)); - f->fh_Type = mp; - f->fh_Arg1 = (SIPTR)fh2; + f->fh_Arg1 = (SIPTR)fh2; if (fl) FreeMem(fl, sizeof(*fl)); -- 2.11.4.GIT