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

ERROR_NOT_LOCKED returned from UnlockFileEx.
This commit is contained in:
Corinna Vinschen 2006-08-10 08:44:43 +00:00
parent eab543a1d6
commit 887e02e478
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-08-10 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (fhandler_disk_file::lock): Handle
ERROR_NOT_LOCKED returned from UnlockFileEx.
2006-08-09 Corinna Vinschen <corinna@vinschen.de>
* path.h (SYMLINK_EA_NAME): Remove.

View File

@ -1364,6 +1364,8 @@ fhandler_disk_file::lock (int cmd, struct __flock64 *fl)
if (fl->l_type == F_UNLCK)
{
res = UnlockFileEx (get_handle (), 0, len_low, len_high, &ov);
if (res == 0 && GetLastError () == ERROR_NOT_LOCKED)
res = 1;
}
else
{