mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 12:02:02 +00:00
- Map the GENERIC_* flags depending of the object type in IoCreateFile.
svn path=/trunk/; revision=10244
This commit is contained in:
parent
d17f542edd
commit
b4b6a5f134
1 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: create.c,v 1.72 2003/12/30 18:52:04 fireball Exp $
|
||||
/* $Id: create.c,v 1.73 2004/07/22 02:32:43 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -376,6 +376,9 @@ IoCreateFile(OUT PHANDLE FileHandle,
|
|||
return(Status);
|
||||
}
|
||||
|
||||
RtlMapGenericMask(&DesiredAccess,
|
||||
BODY_TO_HEADER(FileObject)->ObjectType->Mapping);
|
||||
|
||||
Status = ObInsertObject ((PVOID)FileObject,
|
||||
NULL,
|
||||
DesiredAccess,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue