Skip to content
Snippets Groups Projects
Commit 99f1d377 authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard
Browse files

Fixed an error in the implementation of FILE_ShareDeny.

parent e0e248ea
No related branches found
No related tags found
No related merge requests found
......@@ -415,7 +415,7 @@ static BOOL32 FILE_ShareDeny( int mode, int oldmode)
return TRUE;
test_ro_int24:
if (oldmode & OF_READ)
if (oldmode == OF_READ)
return FALSE;
/* Fall through */
fail_int24:
......@@ -425,7 +425,7 @@ fail_int24:
return TRUE;
test_ro_err05:
if (oldmode & OF_READ)
if (oldmode == OF_READ)
return FALSE;
/* fall through */
fail_error05:
......
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