* fhandler_floppy.cc (fhandler_dev_floppy::open): Fix comment.
This commit is contained in:
parent
744f194868
commit
abadc07850
|
@ -1,3 +1,7 @@
|
||||||
|
2012-10-15 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* fhandler_floppy.cc (fhandler_dev_floppy::open): Fix comment.
|
||||||
|
|
||||||
2012-10-15 Christopher Faylor <me.cygwin2012@cgf.cx>
|
2012-10-15 Christopher Faylor <me.cygwin2012@cgf.cx>
|
||||||
|
|
||||||
* fhandler_tty.cc (fhandler_pty_slave::write): DWORD -> BOOL.
|
* fhandler_tty.cc (fhandler_pty_slave::write): DWORD -> BOOL.
|
||||||
|
|
|
@ -380,9 +380,9 @@ fhandler_dev_floppy::open (int flags, mode_t)
|
||||||
devbuf = (char *) roundup2 ((uintptr_t) devbufalloc, devbufalign);
|
devbuf = (char *) roundup2 ((uintptr_t) devbufalloc, devbufalign);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If we're trying to access a CD/DVD drive, or an entire disk,
|
/* If we're not trying to access a floppy disk, make sure we're actually
|
||||||
make sure we're actually allowed to read *all* of the device.
|
allowed to read *all* of the device or volume. This is actually
|
||||||
This is actually documented in the MSDN CreateFile man page. */
|
documented in the MSDN CreateFile man page. */
|
||||||
if (get_major () != DEV_FLOPPY_MAJOR
|
if (get_major () != DEV_FLOPPY_MAJOR
|
||||||
&& !DeviceIoControl (get_handle (), FSCTL_ALLOW_EXTENDED_DASD_IO,
|
&& !DeviceIoControl (get_handle (), FSCTL_ALLOW_EXTENDED_DASD_IO,
|
||||||
NULL, 0, NULL, 0, &bytes_read, NULL))
|
NULL, 0, NULL, 0, &bytes_read, NULL))
|
||||||
|
|
Loading…
Reference in New Issue