Skip to content
Snippets Groups Projects
Commit c88cfced authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix typo in Windows version of xp_lockfile()

parent 203d4151
No related branches found
No related tags found
No related merge requests found
Pipeline #7334 failed
......@@ -259,7 +259,7 @@ int xp_lockfile(int file, off_t offset, off_t size, bool block)
(void)lseek(file, offset, SEEK_SET);
do {
i = _locking(file, block ? LK_LOCK : LK_NBLCK, (long)size);
} while(block && i != 0 && errno = EDEADLOCK);
} while(block && i != 0 && errno == EDEADLOCK);
if(offset!=pos)
(void)lseek(file, pos, SEEK_SET);
return(i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment