Fixed an error in the implementation of FILE_ShareDeny.
This commit is contained in:
parent
e0e248eaee
commit
99f1d37798
1 changed files with 2 additions and 2 deletions
|
@ -415,7 +415,7 @@ static BOOL32 FILE_ShareDeny( int mode, int oldmode)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
test_ro_int24:
|
test_ro_int24:
|
||||||
if (oldmode & OF_READ)
|
if (oldmode == OF_READ)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
/* Fall through */
|
/* Fall through */
|
||||||
fail_int24:
|
fail_int24:
|
||||||
|
@ -425,7 +425,7 @@ fail_int24:
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
test_ro_err05:
|
test_ro_err05:
|
||||||
if (oldmode & OF_READ)
|
if (oldmode == OF_READ)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
/* fall through */
|
/* fall through */
|
||||||
fail_error05:
|
fail_error05:
|
||||||
|
|
Loading…
Add table
Reference in a new issue