aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/fhandler_floppy.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2012-10-15 14:58:39 +0000
committerCorinna Vinschen <corinna@vinschen.de>2012-10-15 14:58:39 +0000
commitabadc07850c7991b125cb268bda602f8a3895658 (patch)
tree773933105ec3c99a7069e96d4c15e64429c9ccd6 /winsup/cygwin/fhandler_floppy.cc
parent744f194868978d333c59c564737b364c8140b863 (diff)
downloadnewlib-abadc07850c7991b125cb268bda602f8a3895658.zip
newlib-abadc07850c7991b125cb268bda602f8a3895658.tar.gz
newlib-abadc07850c7991b125cb268bda602f8a3895658.tar.bz2
* fhandler_floppy.cc (fhandler_dev_floppy::open): Fix comment.
Diffstat (limited to 'winsup/cygwin/fhandler_floppy.cc')
-rw-r--r--winsup/cygwin/fhandler_floppy.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_floppy.cc b/winsup/cygwin/fhandler_floppy.cc
index b0d0930..01b7c9d 100644
--- a/winsup/cygwin/fhandler_floppy.cc
+++ b/winsup/cygwin/fhandler_floppy.cc
@@ -380,9 +380,9 @@ fhandler_dev_floppy::open (int flags, mode_t)
devbuf = (char *) roundup2 ((uintptr_t) devbufalloc, devbufalign);
}
- /* If we're trying to access a CD/DVD drive, or an entire disk,
- make sure we're actually allowed to read *all* of the device.
- This is actually documented in the MSDN CreateFile man page. */
+ /* If we're not trying to access a floppy disk, make sure we're actually
+ allowed to read *all* of the device or volume. This is actually
+ documented in the MSDN CreateFile man page. */
if (get_major () != DEV_FLOPPY_MAJOR
&& !DeviceIoControl (get_handle (), FSCTL_ALLOW_EXTENDED_DASD_IO,
NULL, 0, NULL, 0, &bytes_read, NULL))