Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2001-06-15 13:17:10 +0400
committerCorinna Vinschen <corinna@vinschen.de>2001-06-15 13:17:10 +0400
commit4d52d5b0fb3b51f5f530502e92029b343c22e1e4 (patch)
tree6d758f9d3c4795963afdf0edefac2e659d80e9e9 /winsup/cygwin/fhandler_tape.cc
parent12a9c874804dc2970c44b223ec1059bd57900169 (diff)
* fhandler_tape.cc (fhandler_dev_tape::tape_status): Set size
parameter to value expected by GetTapeParameters().
Diffstat (limited to 'winsup/cygwin/fhandler_tape.cc')
-rw-r--r--winsup/cygwin/fhandler_tape.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_tape.cc b/winsup/cygwin/fhandler_tape.cc
index 2b6e31705..f7624ad15 100644
--- a/winsup/cygwin/fhandler_tape.cc
+++ b/winsup/cygwin/fhandler_tape.cc
@@ -741,9 +741,12 @@ fhandler_dev_tape::tape_status (struct mtget *get)
|| (lasterr == ERROR_BUS_RESET))
;
+ /* Setting varlen to sizeof DP is by intention, actually! Never set
+ it to sizeof MP which seems to be more correct but results in a
+ ERROR_MORE_DATA error at least on W2K. */
if ((lasterr) || (lasterr = GetTapeParameters (get_handle (),
GET_TAPE_MEDIA_INFORMATION,
- (varlen = sizeof mp, &varlen),
+ (varlen = sizeof dp, &varlen),
&mp)))
notape = 1;