Skip to content

Commit e233cee

Browse files
committed
restore software component filter
1 parent b0b4b1f commit e233cee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/HardwareDevices/devicetree.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ BOOLEAN DeviceTreeShouldIncludeDeviceItem(
9797
if (ShowDisconnected)
9898
return TRUE;
9999

100+
if (!ShowSoftwareComponents && IsEqualGUID(&DeviceItem->ClassGuid, &GUID_DEVCLASS_SOFTWARECOMPONENT))
101+
return FALSE;
102+
100103
return PhGetDeviceProperty(DeviceItem, PhDevicePropertyIsPresent)->Boolean;
101104
}
102105
}

0 commit comments

Comments
 (0)