https://git.reactos.org/?p=reactos.git;a=commitdiff;h=eeeca29c6c2437f3f99ab…
commit eeeca29c6c2437f3f99ab05894c7401b7c921ab4
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Sun Oct 6 18:18:34 2019 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sun Oct 6 18:18:34 2019 +0200
[FREELDR] INFFILE Parser: Fix while-loop conditions, this bug existed for 16+ years
(commit 939d5316, revision 4758).
---
boot/freeldr/freeldr/ntldr/inffile.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/boot/freeldr/freeldr/ntldr/inffile.c b/boot/freeldr/freeldr/ntldr/inffile.c
index b3c40606e9a..eced0fe0ee7 100644
--- a/boot/freeldr/freeldr/ntldr/inffile.c
+++ b/boot/freeldr/freeldr/ntldr/inffile.c
@@ -1067,9 +1067,9 @@ InfFindFirstLine (
/* Iterate through list of sections */
CacheSection = Cache->FirstSection;
- while (Section != NULL)
+ while (CacheSection != NULL)
{
-// DPRINT("Comparing '%S' and '%S'\n",
CacheSection->Name, Section);
+// DPRINT("Comparing '%s' and '%s'\n",
CacheSection->Name, Section);
/* Are the section names the same? */
if (_stricmp(CacheSection->Name, Section) == 0)
@@ -1223,9 +1223,9 @@ InfGetLineCount(
/* Iterate through list of sections */
CacheSection = Cache->FirstSection;
- while (Section != NULL)
+ while (CacheSection != NULL)
{
-// DPRINT("Comparing '%S' and '%S'\n",
CacheSection->Name, Section);
+// DPRINT("Comparing '%s' and '%s'\n",
CacheSection->Name, Section);
/* Are the section names the same? */
if (_stricmp(CacheSection->Name, Section) == 0)