From 7f69240625888e5562f749b3efd11b8d4590b998 Mon Sep 17 00:00:00 2001 From: Robert Dickenson Date: Sat, 27 Sep 2003 09:14:15 +0000 Subject: [PATCH] reactos\subsys\system\usetup\infcache.c (line 1156) CacheSection = Cache->FirstSection; while (Section != NULL) changed to: CacheSection = Cache->FirstSection; // while (Section != NULL) // RobD - this looks like an error, variable 'Section' never changes inside the while loop... while (CacheSection != NULL) and also the same in: reactos\tools\mkhive\infcache.c (line 1007) Could Royce or Eric confirm this 'fix' please. svn path=/trunk/; revision=6158 --- reactos/lib/rosrtl/misc/.cvsignore | 1 + reactos/regtests/kmregtests/.cvsignore | 3 ++- reactos/subsys/system/usetup/infcache.c | 5 +++-- reactos/tools/mkhive/.cvsignore | 1 + reactos/tools/mkhive/infcache.c | 5 +++-- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/reactos/lib/rosrtl/misc/.cvsignore b/reactos/lib/rosrtl/misc/.cvsignore index a4383358ec7..31dc3078b3a 100644 --- a/reactos/lib/rosrtl/misc/.cvsignore +++ b/reactos/lib/rosrtl/misc/.cvsignore @@ -1 +1,2 @@ *.d +*.o diff --git a/reactos/regtests/kmregtests/.cvsignore b/reactos/regtests/kmregtests/.cvsignore index fcd44aaeda2..e5ef4e7a56f 100755 --- a/reactos/regtests/kmregtests/.cvsignore +++ b/reactos/regtests/kmregtests/.cvsignore @@ -5,4 +5,5 @@ *.sym *.sys *.map -_regtests.c \ No newline at end of file +_regtests.c +*.sys diff --git a/reactos/subsys/system/usetup/infcache.c b/reactos/subsys/system/usetup/infcache.c index 8fc073097ad..eea8cdd67de 100644 --- a/reactos/subsys/system/usetup/infcache.c +++ b/reactos/subsys/system/usetup/infcache.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: infcache.c,v 1.5 2003/08/24 10:36:06 chorns Exp $ +/* $Id: infcache.c,v 1.6 2003/09/27 09:14:15 robd Exp $ * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS text-mode setup * FILE: subsys/system/usetup/infcache.c @@ -1153,7 +1153,8 @@ InfFindFirstLine (HINF InfHandle, /* Iterate through list of sections */ CacheSection = Cache->FirstSection; - while (Section != NULL) +// while (Section != NULL) // RobD - this looks like an error, Section variable never changes inside the while loop... + while (CacheSection != NULL) { DPRINT("Comparing '%S' and '%S'\n", CacheSection->Name, Section); diff --git a/reactos/tools/mkhive/.cvsignore b/reactos/tools/mkhive/.cvsignore index f6a0ee64e6a..d4d43f3d71a 100644 --- a/reactos/tools/mkhive/.cvsignore +++ b/reactos/tools/mkhive/.cvsignore @@ -1,2 +1,3 @@ +*.o *.exe mkhive diff --git a/reactos/tools/mkhive/infcache.c b/reactos/tools/mkhive/infcache.c index 9059c9301a8..3bed6b6c4e6 100644 --- a/reactos/tools/mkhive/infcache.c +++ b/reactos/tools/mkhive/infcache.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: infcache.c,v 1.5 2003/05/18 13:50:58 ekohl Exp $ +/* $Id: infcache.c,v 1.6 2003/09/27 09:14:15 robd Exp $ * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS hive maker * FILE: tools/mkhive/infcache.c @@ -1004,7 +1004,8 @@ InfFindFirstLine (HINF InfHandle, /* Iterate through list of sections */ CacheSection = Cache->FirstSection; - while (Section != NULL) +// while (Section != NULL) // RobD - this looks like an error, Section variable never changes inside the while loop... + while (CacheSection != NULL) { DPRINT("Comparing '%s' and '%s'\n", CacheSection->Name, Section);