From 50bd5243982e67c49cae3907173f15b7cd5672d2 Mon Sep 17 00:00:00 2001 From: guido Date: Sat, 14 Sep 2002 13:10:45 +0000 Subject: [PATCH] Fix building using gcc-2.95 svn path=/trunk/; revision=3502 --- reactos/drivers/fs/cdfs/dirctl.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/reactos/drivers/fs/cdfs/dirctl.c b/reactos/drivers/fs/cdfs/dirctl.c index 33aa7786412..abb7d7e93c8 100644 --- a/reactos/drivers/fs/cdfs/dirctl.c +++ b/reactos/drivers/fs/cdfs/dirctl.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: dirctl.c,v 1.10 2002/09/13 18:51:01 hbirr Exp $ +/* $Id: dirctl.c,v 1.11 2002/09/14 13:10:45 guido Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -56,10 +56,9 @@ CdfsGetEntryName(PDEVICE_EXTENSION DeviceExt, * FUNCTION: Retrieves the file name, be it in short or long file name format */ { - PDIR_RECORD Record; - Record = *Ptr; + PDIR_RECORD Record = *Ptr; ULONG Index; - + if (*CurrentOffset >= DirLength) return(STATUS_NO_MORE_ENTRIES);