* fhandler_disk_file.cc (fhandler_disk_file::lock): Interchange

values of off_low and off_high.
This commit is contained in:
Corinna Vinschen 2003-12-03 09:58:23 +00:00
parent e2a39e2efa
commit 1843517401
2 changed files with 7 additions and 2 deletions

View File

@ -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.

View File

@ -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