[NTOSKRNL] Fix remaining access computation on open

This commit is contained in:
Pierre Schweitzer 2018-09-30 10:53:12 +02:00
parent 6d0c07c44f
commit 890a293683
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -7,6 +7,7 @@
* Gunnar Dalsnes
* Eric Kohl
* Filip Navara (navaraf@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;
}