[SETUP/LIB] Fix wrong if() logic. CID1441307
authorRobert Naumann <gonzomdx@gmail.com>
Wed, 23 Oct 2019 13:38:39 +0000 (15:38 +0200)
committerHermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
Wed, 23 Oct 2019 15:23:05 +0000 (17:23 +0200)
base/setup/lib/utils/bldrsup.c

index 4848831..554cfc3 100644 (file)
@@ -1150,7 +1150,7 @@ QueryBootStoreOptions(
     //
 
     // if (BootStore->Type >= BldrTypeMax || NtosBootLoaders[BootStore->Type].Type >= BldrTypeMax)
-    if (BootStore->Type != FreeLdr || BootStore->Type != NtLdr)
+    if (BootStore->Type != FreeLdr && BootStore->Type != NtLdr)
     {
         DPRINT1("Loader type %d is currently unsupported!\n", NtosBootLoaders[BootStore->Type].Type);
         return STATUS_NOT_SUPPORTED;