diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2004-04-20 15:01:22 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2004-04-20 15:01:22 +0400 |
commit | 1b557b4333fab9dae7bbe9c28798731bc6558dec (patch) | |
tree | 33660387f249d828a90a46ba520c4a6e76294894 /winsup/cygwin/fhandler_tape.cc | |
parent | fc0ac9dfe61d308de80cd36d27b7801fb33eba69 (diff) |
* fhandler.cc (fhandler_base::open): Remove special DEV_FLOPPY_MAJOR
treatment.
* fhandler_raw.cc (fhandler_dev_raw::open): Simplify write-only case.
* fhandler_tape.cc (fhandler_dev_tape::raw_write): Add accidentally
dropped condition.
Diffstat (limited to 'winsup/cygwin/fhandler_tape.cc')
-rw-r--r-- | winsup/cygwin/fhandler_tape.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_tape.cc b/winsup/cygwin/fhandler_tape.cc index 2296d59fa..1309b3ba8 100644 --- a/winsup/cygwin/fhandler_tape.cc +++ b/winsup/cygwin/fhandler_tape.cc @@ -1364,6 +1364,7 @@ fhandler_dev_tape::raw_write (const void *ptr, size_t len) if (!mt_evt && !(mt_evt = CreateEvent (&sec_none, TRUE, FALSE, NULL))) debug_printf ("Creating event failed: %E"); int ret = mt->drive (driveno ())->write (get_handle (), mt_evt, ptr, len); + if (ret) __seterrno_from_win_error (ret); return unlock (len); } |