From 322daf7cc41beeb30c818113b07050704f5604bd Mon Sep 17 00:00:00 2001 From: mazze Date: Sun, 3 Jun 2012 19:34:01 +0000 Subject: [PATCH] Print nothing if FindTask() has been called with NULL argument. Otherwise we'll get too many results. SnoopDOS does the same thing BTW. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@44934 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- workbench/system/Snoopy/gui.c | 2 +- workbench/system/Snoopy/patches.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/workbench/system/Snoopy/gui.c b/workbench/system/Snoopy/gui.c index c29ce2c15c..09a77ba176 100644 --- a/workbench/system/Snoopy/gui.c +++ b/workbench/system/Snoopy/gui.c @@ -20,7 +20,7 @@ #include "patches.h" #include "locale.h" -#define VERSION "$VER: Snoopy 0.10 (25.01.2011) © 2006-2011 The AROS Dev Team" +#define VERSION "$VER: Snoopy 0.11 (03.06.2012) © 2006-2012 The AROS Dev Team" static Object *app, *window, *saveBtn, *openBtn, *useBtn, *undoBtn, *resetBtn, *cancelBtn; static Object *failCM, *cliCM, *pathCM, *devCM, *ignoreCM, *breakPointCM, *patternStr; diff --git a/workbench/system/Snoopy/patches.c b/workbench/system/Snoopy/patches.c index d517580740..531cddcf84 100644 --- a/workbench/system/Snoopy/patches.c +++ b/workbench/system/Snoopy/patches.c @@ -1,5 +1,5 @@ /* - Copyright © 2006-2011, The AROS Development Team. All rights reserved. + Copyright © 2006-2012, The AROS Development Team. All rights reserved. $Id$ */ @@ -730,7 +730,7 @@ AROS_LH1(struct Task *, New_FindTask, AROS_LDA(STRPTR, name, A1), struct ExecBase *, SysBase); - if (patches[PATCH_FindTask].enabled) + if ((name != NULL) && patches[PATCH_FindTask].enabled) { main_output("FindTask", name, 0, (IPTR)result, TRUE); } -- 2.11.4.GIT