diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-12-03 12:58:23 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-12-03 12:58:23 +0300 |
commit | 184351740197f009e0630a182acd4422024d6ab4 (patch) | |
tree | 85ba556fc6fa3fb4287a6b905fc73657e18fe1ba /winsup | |
parent | e2a39e2efa3337b9c6abbba4c7eb914c5ee9d3d9 (diff) |
* fhandler_disk_file.cc (fhandler_disk_file::lock): Interchange
values of off_low and off_high.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 4113bc6b6..8f96fbaaa 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2003-12-03 Pierre Humblet <pierre.humblet@ieee.org> + + * fhandler_disk_file.cc (fhandler_disk_file::lock): Interchange + values of off_low and off_high. + 2003-12-03 Corinna Vinschen <corinna@vinschen.de> * fcntl.cc (fcntl_worker): Remove static storage class. diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index c51eace2a..2c8829ca4 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -536,8 +536,8 @@ fhandler_disk_file::lock (int cmd, struct __flock64 *fl) DWORD off_high, off_low, len_high, len_low; - off_high = (DWORD)(win32_start & 0xffffffff); - off_low = (DWORD)(win32_start >> 32); + off_low = (DWORD)(win32_start & 0xffffffff); + off_high = (DWORD)(win32_start >> 32); if (win32_len == 0) { /* Special case if len == 0 for POSIX means lock to the end of |