From ffa8ff7574e33d8abed48ba04c5970437cbe0ef4 Mon Sep 17 00:00:00 2001 From: Robert Naumann Date: Wed, 23 Oct 2019 15:38:39 +0200 Subject: [PATCH] [SETUP/LIB] Fix wrong if() logic. CID1441307 --- base/setup/lib/utils/bldrsup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/setup/lib/utils/bldrsup.c b/base/setup/lib/utils/bldrsup.c index 4848831068f..554cfc3f56e 100644 --- a/base/setup/lib/utils/bldrsup.c +++ b/base/setup/lib/utils/bldrsup.c @@ -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;