(ef_open) [_WIN32]: Fix to get a read lock instead of a write lock for
EFF_RDONLY and to get a write lock instead of a total file lock for file opened for writing.
This commit is contained in:
parent
a3b52a748c
commit
ce63991c9f
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ ef_open(int type, int how)
|
|||
#if defined(_WIN32)
|
||||
oflags |= O_BINARY;
|
||||
if ((fd = sopen(ep->file, oflags,
|
||||
how & EFF_RDONLY ? SH_DENYWR : SH_DENYRW,
|
||||
how & EFF_RDONLY ? SH_DENYNO : SH_DENYWR,
|
||||
0660)) < 0) {
|
||||
logerror("Can't open %s (%s)", ep->file, strerror(errno));
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue