From ff6bf04b8b28bcdd42ef2a4545bb2150192b027d Mon Sep 17 00:00:00 2001 From: rsun3 Date: Wed, 3 Dec 2008 06:47:39 +0000 Subject: [PATCH] Parameter checking in BdsLibMatchDevicePaths() is wrong. This bug was found because active console out devices are shown inactive in Setup Boot Maintenance Manager. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6814 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Library/GenericBdsLib/BdsMisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Library/GenericBdsLib/BdsMisc.c b/MdeModulePkg/Library/GenericBdsLib/BdsMisc.c index 6b3fa618e1..8b3dcd783b 100644 --- a/MdeModulePkg/Library/GenericBdsLib/BdsMisc.c +++ b/MdeModulePkg/Library/GenericBdsLib/BdsMisc.c @@ -760,7 +760,7 @@ BdsLibMatchDevicePaths ( EFI_DEVICE_PATH_PROTOCOL *DevicePathInst; UINTN Size; - if (Multi != NULL || Single != NULL) { + if (Multi == NULL || Single == NULL) { return FALSE; } -- 2.39.2