mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-30 22:45:21 -04:00
[dev] add exception for SSDs sitting behind a VIA-Labs adapter
* Also adjust the sizes under and above which we consider a drive is UFD/HDD
This commit is contained in:
parent
6f5ea5f88f
commit
c2017ad659
4 changed files with 12 additions and 11 deletions
|
@ -432,7 +432,7 @@ BOOL SmartGetVersion(HANDLE hdevice)
|
|||
* USB<->(S)ATA bridge seem to have their own method of implementing passthrough.
|
||||
* - SSDs have also changed the deal completely, as you can get something that looks
|
||||
* like Flash but that is really an HDD.
|
||||
* - Some manufacturers (eg. verbatim) provide both USB Flash Drives and USB HDDs, so
|
||||
* - Some manufacturers (eg. Verbatim) provide both USB Flash Drives and USB HDDs, so
|
||||
* we can't exactly use the VID to say for sure what we're looking at.
|
||||
* - Finally, Microsoft is absolutely no help either (which is kind of understandable
|
||||
* from the above) => there is no magic API we can query that will tell us what we're
|
||||
|
@ -451,9 +451,9 @@ int IsHDD(DWORD DriveIndex, uint16_t vid, uint16_t pid, const char* strid)
|
|||
|
||||
// Adjust the score depending on the size
|
||||
drive_size = GetDriveSize(DriveIndex);
|
||||
if (drive_size > 512*GB)
|
||||
if (drive_size > 400 * GB)
|
||||
score += 10;
|
||||
else if (drive_size < 8*GB)
|
||||
else if (drive_size < 32 * GB)
|
||||
score -= 10;
|
||||
|
||||
// Check the string against well known HDD identifiers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue