- Map the GENERIC_* flags depending of the object type in IoCreateFile.

svn path=/trunk/; revision=10244
This commit is contained in:
Filip Navara 2004-07-22 02:32:43 +00:00
parent d17f542edd
commit b4b6a5f134

View file

@ -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,