mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-29 05:55:30 -04:00
[iso] improve fallback for dual UDF+ISO9660 images
* Also add private filtering of LM90X USB⟷SSD devices
This commit is contained in:
parent
94b28390b6
commit
798029237f
4 changed files with 13 additions and 9 deletions
|
@ -46,7 +46,7 @@
|
|||
|
||||
extern StrArray DriveId, DriveName, DriveLabel, DriveHub;
|
||||
extern uint32_t DrivePort[MAX_DRIVES];
|
||||
extern BOOL enable_HDDs, use_fake_units, enable_vmdk, usb_debug, list_non_usb_removable_drives;
|
||||
extern BOOL enable_HDDs, use_fake_units, enable_vmdk, usb_debug, list_non_usb_removable_drives, is_me;
|
||||
|
||||
/*
|
||||
* Get the VID, PID and current device speed
|
||||
|
@ -781,6 +781,9 @@ BOOL GetDevices(DWORD devnum)
|
|||
}
|
||||
static_strcpy(str, "????:????"); // Couldn't figure VID:PID
|
||||
} else {
|
||||
// because I don't want to end up erasing this specific device of mine by accident
|
||||
if (is_me && (props.vid == 0x0525) && (props.pid == 0x622b))
|
||||
continue;
|
||||
static_sprintf(str, "%04X:%04X", props.vid, props.pid);
|
||||
}
|
||||
if (props.speed >= USB_SPEED_MAX)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue