From abadc07850c7991b125cb268bda602f8a3895658 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 15 Oct 2012 14:58:39 +0000 Subject: [PATCH] * fhandler_floppy.cc (fhandler_dev_floppy::open): Fix comment. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/fhandler_floppy.cc | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index e05af490b..6e194bae5 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2012-10-15 Corinna Vinschen + + * fhandler_floppy.cc (fhandler_dev_floppy::open): Fix comment. + 2012-10-15 Christopher Faylor * fhandler_tty.cc (fhandler_pty_slave::write): DWORD -> BOOL. diff --git a/winsup/cygwin/fhandler_floppy.cc b/winsup/cygwin/fhandler_floppy.cc index b0d0930a2..01b7c9d57 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)) -- 2.43.5