From 4de1f287612ff020ffa44d45e5327c00cd656894 Mon Sep 17 00:00:00 2001 From: eric_tian Date: Fri, 6 Feb 2009 05:00:13 +0000 Subject: fix ecc git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7451 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c index 69eb926d01..2d2bd2a154 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c +++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c @@ -1028,7 +1028,7 @@ MatchUsbWwid ( // // BugBug: only check serial number here, should check Interface Number, Device Vendor Id, Device Product Id in later version // - if (StrDesc != NULL && !StrnCmp (StrDesc->String, SnString, StrDesc->Length)) { + if (StrDesc != NULL && (StrnCmp (StrDesc->String, SnString, StrDesc->Length) == 0)) { return TRUE; } -- cgit v1.2.3