mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
* fhandler_disk_file.cc (fhandler_disk_file::lock): Handle
ERROR_NOT_LOCKED returned from UnlockFileEx.
This commit is contained in:
parent
eab543a1d6
commit
887e02e478
@ -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>
|
2006-08-09 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* path.h (SYMLINK_EA_NAME): Remove.
|
* path.h (SYMLINK_EA_NAME): Remove.
|
||||||
|
@ -1364,6 +1364,8 @@ fhandler_disk_file::lock (int cmd, struct __flock64 *fl)
|
|||||||
if (fl->l_type == F_UNLCK)
|
if (fl->l_type == F_UNLCK)
|
||||||
{
|
{
|
||||||
res = UnlockFileEx (get_handle (), 0, len_low, len_high, &ov);
|
res = UnlockFileEx (get_handle (), 0, len_low, len_high, &ov);
|
||||||
|
if (res == 0 && GetLastError () == ERROR_NOT_LOCKED)
|
||||||
|
res = 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user