From e3e7c709c59a15f81fb8243d1712b451cd140244 Mon Sep 17 00:00:00 2001 From: mazze Date: Fri, 1 Jun 2012 05:55:58 +0000 Subject: [PATCH] Use IsFileSystem() to check whether we have a FileSysStartupMsg. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@44920 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- workbench/c/Info.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/workbench/c/Info.c b/workbench/c/Info.c index 5109bc2bc5..475a719d96 100644 --- a/workbench/c/Info.c +++ b/workbench/c/Info.c @@ -425,12 +425,9 @@ BOOL ScanDosList(STRPTR *filter) BPTR ptr = ndl->dol_misc.dol_handler.dol_Startup; struct FileSysStartupMsg *fssm = NULL; - if (ptr > (BPTR)64) + if (IsFileSystem(idn->Name)) { - // GURU book is telling that the content of dol_Startup - // is handler specific and only filesystems have - // a startup message. - // FIXME: is there a way to check for a filesystem? + // Only filesystems have a valid FileSysStartupMsg fssm = (struct FileSysStartupMsg *)BADDR(ptr); } -- 2.11.4.GIT