mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Restore drive order detection in windows XP
This commit is contained in:
parent
9d55ff3f3e
commit
51f3364823
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user