Author: hpoussin
Date: Wed Apr 12 02:20:28 2006
New Revision: 21560
URL:
http://svn.reactos.ru/svn/reactos?rev=21560&view=rev
Log:
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
Modified:
trunk/reactos/base/applications/devmgr/devmgr.c
Modified: trunk/reactos/base/applications/devmgr/devmgr.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/base/applications/devmgr/de…
==============================================================================
--- trunk/reactos/base/applications/devmgr/devmgr.c (original)
+++ trunk/reactos/base/applications/devmgr/devmgr.c Wed Apr 12 02:20:28 2006
@@ -269,7 +269,7 @@
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 @@
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. */