Hi Jeremy,

On Feb 18 10:38, Jeremy Drake via Cygwin-patches wrote:
> @@ -1742,17 +1742,19 @@ struct mntent *
>  mount_info::cygdrive_getmntent ()
>  {
>    tmp_pathbuf tp;
> -  const wchar_t *wide_path;
> +  dos_drive_mappings::dos_device_mountpoint dos_mount;
>    char *win32_path, *posix_path;
> 
>    if (!_my_tls.locals.drivemappings)
>      _my_tls.locals.drivemappings = new dos_drive_mappings ();
> 
> -  wide_path = _my_tls.locals.drivemappings->next_dos_mount ();
> -  if (wide_path)
> +  dos_mount = _my_tls.locals.drivemappings->next_dos_mount ();
> +  while (dos_mount.device && get_device_type (dos_mount.device) == DT_FLOPPY)
> +    dos_mount = _my_tls.locals.drivemappings->next_dos_mount ();

Actually, given that we can't do without GetLogicalDrives anyway,
this could be folded into the mapping list creation within
dos_drive_mappings::dos_drive_mappings.


Corinna

Reply via email to