[SETUPLIB][USETUP] Refactor the DoesFileExist() function so that it now looks closer...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Wed, 24 May 2017 16:37:49 +0000 (16:37 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 3 Jun 2018 20:12:43 +0000 (22:12 +0200)
commitb53b7b11e3311a7bd27e962ee6ab83ed248552e1
tree1632fe568af513e11be107f78cd798e39338c7b8
parentd27ef70aabb81181f2c0368e9b411e466f48304e
[SETUPLIB][USETUP] Refactor the DoesFileExist() function so that it now looks closer to DoesPathExist() and use it almost everywhere.

- Adjust also its callers, adjust OpenAndMapFile() parameters.
- Related to that, simplify IsValidNTOSInstallation() parameters & introduce a IsValidNTOSInstallation_UStr()
  that does the same, but takes a UNICODE_STRING instead.
- Simplify CheckForValidPEAndVendor().

Now only exactly 5 calls use the "old" 'DoesFileExist' syntax, using a temporarily auxiliary function "DoesFileExist_2"...

svn path=/branches/setup_improvements/; revision=74641
base/setup/lib/filesup.c
base/setup/lib/filesup.h
base/setup/lib/osdetect.c
base/setup/usetup/bootsup.c
base/setup/usetup/usetup.c