From 8f4dfcaa1fa1f21e16a4759693fe735568bb138f Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 17 Nov 2003 22:18:42 +0000 Subject: * fhandler.cc (fhandler_base::lseek): Include high order offset bits in return value. --- winsup/cygwin/fhandler.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'winsup/cygwin/fhandler.cc') diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index 834ea5fe0..b27ab678c 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -874,6 +874,9 @@ fhandler_base::lseek (_off64_t offset, int whence) } else { + if (poff_high) + res += (_off64_t) *poff_high << 32; + /* When next we write(), we will check to see if *this* seek went beyond the end of the file, and back-seek and fill with zeros if so - DJ */ set_did_lseek (); -- cgit v1.2.3