mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Windows: Ignore drives A: and B: when scanning for the drives belonging to a device
This commit is contained in:
parent
6476c3b2cf
commit
d921e444a7
@ -276,8 +276,10 @@ get_all_removable_disks(struct tagDrives *g_drives)
|
|||||||
|
|
||||||
for(nLoopIndex = 0; nLoopIndex < MAX_DRIVES; nLoopIndex++)
|
for(nLoopIndex = 0; nLoopIndex < MAX_DRIVES; nLoopIndex++)
|
||||||
{
|
{
|
||||||
// if a drive is present,
|
// if a drive is present (we ignore the A and B drives as they are
|
||||||
if(dwDriveMask & 1)
|
// always present (even if no actual floppy is present) and we dont
|
||||||
|
// care about floppies)
|
||||||
|
if(nLoopIndex > 1 && dwDriveMask & 1)
|
||||||
{
|
{
|
||||||
caDrive[0] = 'A' + nLoopIndex;
|
caDrive[0] = 'A' + nLoopIndex;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user