Restore drive order detection in windows XP

This commit is contained in:
Kovid Goyal 2010-08-13 13:10:23 -06:00
parent 9d55ff3f3e
commit 51f3364823

View File

@ -56,6 +56,8 @@ class WinPNPScanner(object):
def drive_order(self, pnp_id):
order = 0
match = re.search(r'REV_.*?&(\d+)#', pnp_id)
if match is None:
match = re.search(r'REV_.*?&(\d+)', pnp_id)
if match is not None:
order = int(match.group(1))
return order