summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_disk_file.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r--winsup/cygwin/fhandler_disk_file.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc
index a7b51a2b7..5b70ad281 100644
--- a/winsup/cygwin/fhandler_disk_file.cc
+++ b/winsup/cygwin/fhandler_disk_file.cc
@@ -1264,11 +1264,7 @@ fhandler_disk_file::lock (int cmd, struct __flock64 *fl)
{
/* Special case if len == 0 for POSIX means lock to the end of
the entire file (and all future extensions). */
- /* CV, 2003-12-03: And yet another Win 9x bugginess. For some reason
- offset + length must be <= 0x100000000. I'm using 0xffffffff as
- upper border here, this should be sufficient. */
- len_low = UINT32_MAX - (wincap.lock_file_highword () ? 0 : off_low);
- len_high = wincap.lock_file_highword ();
+ len_low = len_high = UINT32_MAX;
}
else
{