Lock errors.

This commit is contained in:
Nuno Cruces
2023-02-14 11:38:05 +00:00
parent 6110e2d6e2
commit 0d59065719
2 changed files with 2 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ func (l *vfsFileLocker) readLock(start, len int64) xErrorCode {
Type: syscall.F_RDLCK,
Start: start,
Len: len,
}), IOERR_LOCK)
}), IOERR_RDLOCK)
}
func (l *vfsFileLocker) writeLock(start, len int64) xErrorCode {

View File

@@ -94,7 +94,7 @@ func (l *vfsFileLocker) readLock(start, len uint32) xErrorCode {
return l.errorCode(windows.LockFileEx(windows.Handle(l.file.Fd()),
windows.LOCKFILE_FAIL_IMMEDIATELY,
0, len, 0, &windows.Overlapped{Offset: start}),
IOERR_LOCK)
IOERR_RDLOCK)
}
func (l *vfsFileLocker) writeLock(start, len uint32) xErrorCode {