From c28cd9af2cca22a644f3bc96948cd69205a5c2b6 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Sun, 26 Sep 2004 13:25:42 +0000 Subject: [PATCH] minor fix svn path=/trunk/; revision=11068 --- reactos/lib/shellext/slayer/slayer.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/reactos/lib/shellext/slayer/slayer.c b/reactos/lib/shellext/slayer/slayer.c index bbba2f09b1d..5a001470c61 100644 --- a/reactos/lib/shellext/slayer/slayer.c +++ b/reactos/lib/shellext/slayer/slayer.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: slayer.c,v 1.2 2004/09/26 10:43:00 weiden Exp $ +/* $Id: slayer.c,v 1.3 2004/09/26 13:25:42 weiden Exp $ * * PROJECT: ReactOS Compatibility Layer Shell Extension * FILE: lib/shellext/cplsample/cplsample.c @@ -413,13 +413,9 @@ ApplySettings(LPCOMPATIBILITYPAGE this, HWND hwndDlg) PCITEM sel = this->CItems; /* map the index to a CITEM structure */ - for(i = index; i > 0; i--) + for(i = index; i > 0 && sel != NULL; i--) { sel = sel->next; - if(sel == NULL) - { - break; - } } /* update the CSelectedItem member */