From f80351fa442e808dd9355d42ff52bcc7977ce395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Tue, 11 Apr 2006 22:20:28 +0000 Subject: [PATCH] When listing devices by connection, list PCI devices only. It only works on ReactOS (as Windows doesn't use the same instance ID for the PCI bus), but it prevents a crash svn path=/trunk/; revision=21560 --- reactos/base/applications/devmgr/devmgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/base/applications/devmgr/devmgr.c b/reactos/base/applications/devmgr/devmgr.c index 5b760b42572..6fb93d8ee70 100644 --- a/reactos/base/applications/devmgr/devmgr.c +++ b/reactos/base/applications/devmgr/devmgr.c @@ -269,7 +269,7 @@ int ListByConnection() DEVINST root; (void)ListView_DeleteAllItems(hwndListView); - cr = CM_Locate_DevNode(&root, NULL, 0); + cr = CM_Locate_DevNode(&root, TEXT("Root\\*PNP0A03\\0000"), 0); if (cr != CR_SUCCESS) { @@ -690,7 +690,7 @@ void CreateButtons(HINSTANCE hInstance, HWND hwndParent) hwndButtonListByConnection = CreateWindowEx ( 0, "button", /* Builtin button class */ - "List by Connection", + "List by Connection (PCI)", WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, 200, 0, 190, 30, hwndParent, /* Parent is this window. */