[FREELDR] Initialize CandidatePageCount to zero, needed if the while-loop is not...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 10 Mar 2024 15:20:16 +0000 (16:20 +0100)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 11 Mar 2024 21:37:35 +0000 (22:37 +0100)
commit9a707af2e30cbfb807d2e1f1f7ad5d877981ab8c
tree3ea1202e09d2af0ab3df5318a94b2fe87af295ce
parent61c4b5f615bdf397de1f36f3ec786591efda9d62
[FREELDR] Initialize CandidatePageCount to zero, needed if the while-loop is not run.

Granted, if the while-loop is not run, this means there is no memory
available at all on the computer where FreeLdr is running, which is
quite unexpected. But do the initialization anyways, in order to avoid
more obscure bugs down the line.

On the other hand, PageLookupTableMemAddress doesn't need to be
pre-initialized, since it gets initialized unconditionally afterwards.
boot/freeldr/freeldr/lib/mm/meminit.c