fix vendor name lookup - MegaRAID SAS 8480E VGA controllers does not exist (yet)

svn path=/trunk/; revision=61620
This commit is contained in:
Christoph von Wittich 2014-01-13 20:09:12 +00:00
parent 8db8046b10
commit e9741e1328

View file

@ -735,12 +735,12 @@ HalpDebugPciDumpBus(IN ULONG i,
}
/* Isolate the vendor name */
sprintf(LookupString, "%04x ", PciData->VendorID);
sprintf(LookupString, "\r\n%04x ", PciData->VendorID);
VendorName = strstr(VendorTable, LookupString);
if (VendorName)
{
/* Copy the vendor name into our buffer */
VendorName += 6;
VendorName += 8;
p = strpbrk(VendorName, "\r\n");
Length = p - VendorName;
if (Length >= sizeof(bVendorName)) Length = sizeof(bVendorName) - 1;