From: rsun3 Date: Wed, 3 Dec 2008 06:47:39 +0000 (+0000) Subject: Parameter checking in BdsLibMatchDevicePaths() is wrong. This bug was found because... X-Git-Tag: edk2-stable201903~19432 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=ff6bf04b8b28bcdd42ef2a4545bb2150192b027d 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 --- 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; }