* fhandler_floppy.cc (fhandler_dev_floppy::get_drive_info): Use
fhandler method to access majoer device number. Add comment to explain floppy weirdness.
This commit is contained in:
parent
251436268e
commit
8afc05fa90
@ -1,3 +1,9 @@
|
|||||||
|
2005-09-30 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* fhandler_floppy.cc (fhandler_dev_floppy::get_drive_info): Use
|
||||||
|
fhandler method to access majoer device number. Add comment to
|
||||||
|
explain floppy weirdness.
|
||||||
|
|
||||||
2005-09-30 Corinna Vinschen <corinna@vinschen.de>
|
2005-09-30 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Also use
|
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Also use
|
||||||
|
@ -46,8 +46,9 @@ fhandler_dev_floppy::get_drive_info (struct hd_geometry *geo)
|
|||||||
DWORD bytes_read = 0;
|
DWORD bytes_read = 0;
|
||||||
|
|
||||||
/* Always try using the new EX ioctls first (>= XP). If not available,
|
/* Always try using the new EX ioctls first (>= XP). If not available,
|
||||||
fall back to trying the old non-EX ioctls. */
|
fall back to trying the old non-EX ioctls.
|
||||||
if (wincap.has_disk_ex_ioctls () && pc.dev.major != DEV_FLOPPY_MAJOR)
|
Unfortunately the EX ioctls are not implemented in the floppy driver. */
|
||||||
|
if (wincap.has_disk_ex_ioctls () && get_major () != DEV_FLOPPY_MAJOR)
|
||||||
{
|
{
|
||||||
if (!DeviceIoControl (get_handle (),
|
if (!DeviceIoControl (get_handle (),
|
||||||
IOCTL_DISK_GET_DRIVE_GEOMETRY_EX, NULL, 0,
|
IOCTL_DISK_GET_DRIVE_GEOMETRY_EX, NULL, 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user