https://git.reactos.org/?p=reactos.git;a=commitdiff;h=890a2936838b3aa4d0bba…
commit 890a2936838b3aa4d0bba6ab4fac960f572fa0b4
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sun Sep 30 10:53:12 2018 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sun Sep 30 10:55:44 2018 +0200
[NTOSKRNL] Fix remaining access computation on open
---
ntoskrnl/io/iomgr/file.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ntoskrnl/io/iomgr/file.c b/ntoskrnl/io/iomgr/file.c
index cdc4aaaa3e..1768bc29ca 100644
--- a/ntoskrnl/io/iomgr/file.c
+++ b/ntoskrnl/io/iomgr/file.c
@@ -7,6 +7,7 @@
* Gunnar Dalsnes
* Eric Kohl
* Filip Navara (navaraf(a)reactos.org)
+ * Pierre Schweitzer
*/
/* INCLUDES *****************************************************************/
@@ -431,7 +432,7 @@ IopParseDevice(IN PVOID ParseObject,
{
/* Update access state */
AccessState->PreviouslyGrantedAccess |= GrantedAccess;
- AccessState->RemainingDesiredAccess &= ~(GrantedAccess &
+ AccessState->RemainingDesiredAccess &= ~(GrantedAccess |
MAXIMUM_ALLOWED);
OpenPacket->Override= TRUE;
}