mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
[FREELDR] INFFILE Parser: Fix while-loop conditions, this bug existed for 16+ years (commit 939d5316
, revision 4758).
This commit is contained in:
parent
2f4fb903b4
commit
eeeca29c6c
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue