From 021a6aa77e8426ea21de6dde8808d96a9f223a4f Mon Sep 17 00:00:00 2001 From: DarkWyrm Date: Wed, 20 Dec 2006 16:19:18 +0000 Subject: [PATCH] small patch to add the card name to the description in the Info tab (hope you don't mind, korli :) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19572 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/devices/ConfigurationWindow.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/preferences/devices/ConfigurationWindow.cpp b/src/preferences/devices/ConfigurationWindow.cpp index 835ac8a743..3f3a8fc36b 100644 --- a/src/preferences/devices/ConfigurationWindow.cpp +++ b/src/preferences/devices/ConfigurationWindow.cpp @@ -529,6 +529,13 @@ ConfigurationWindow::InitWindow(void) vendor = string; sprintf(string, "%04lx", devicesInfo->GetInfo()->id[1] & 0xffff); cardID = string; + + for (uint32 i=0; iGetInfo()->id[0] & 0xffff && + PciDevTable[i].DevId == devicesInfo->GetInfo()->id[1] & 0xffff) { + cardName = PciDevTable[i].ChipDesc; + break; + } } break; case B_PCMCIA_BUS: vendor = "XX"; break;