Limit the amount of 0 bytes required to avoid PnP detection

This commit is contained in:
RichardG867
2022-01-30 17:40:46 -03:00
parent a5778c3998
commit 50d3a08235

View File

@@ -1122,7 +1122,7 @@ class BonusAnalyzer(Analyzer):
device = None
# Take valid data only.
if device_id != b'\x00\x00\x00\x00' and (vendor or device):
if device_id[:2] != b'\x00\x00' and (vendor or device):
# Add PnP ID (endianness swapped to help the front-end in
# processing it), vendor name and device name to the list.
self.oroms.append((struct.unpack('>I', device_id)[0], vendor, device))