mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-24 19:54:25 -04:00
[core] only allow removable drives to be listed
* Our detection code, which is based on the HPUSBFW utility, allows fixed drives such as USB HDDs to be listed * Since Rufus lacks extra precautions for fixed disks, this may result in people mistakenly formatting and HDD instead of a flash drive * Until we have added HDD specific features (support for repartitioning or existing partitions, >32GB FAT32, etc.) we prefer playing it safe by not listing fixed disks. * We will re-enable fixed disks when we feel enough safeties are in place * Also fix an issue where ISO selection could crash if Rufus was compiled for Vista and later and update version to rufus-next
This commit is contained in:
parent
e0e974603c
commit
352a796eff
7 changed files with 23 additions and 21 deletions
|
@ -331,7 +331,7 @@ char* FileDialog(BOOL save, char* path, char* filename, char* ext, char* ext_des
|
|||
|
||||
#if (_WIN32_WINNT >= 0x0600) // Vista and later
|
||||
HRESULT hr = FALSE;
|
||||
IFileDialog *pfd;
|
||||
IFileDialog *pfd = NULL;
|
||||
IShellItem *psiResult;
|
||||
COMDLG_FILTERSPEC filter_spec[2];
|
||||
char* ext_filter;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue