Author: sginsberg
Date: Wed Sep 24 12:32:14 2008
New Revision: 36491
URL:
http://svn.reactos.org/svn/reactos?rev=36491&view=rev
Log:
- Add ObpValidateAccessMask stub (only returns success for now) and call it from
ObInsertObject
- Fix for Coverity Error CID: 9
Modified:
trunk/reactos/ntoskrnl/ob/obhandle.c
Modified: trunk/reactos/ntoskrnl/ob/obhandle.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ob/obhandle.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/ob/obhandle.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ob/obhandle.c [iso-8859-1] Wed Sep 24 12:32:14 2008
@@ -447,6 +447,14 @@
}
/* Return success */
+ return STATUS_SUCCESS;
+}
+
+NTSTATUS
+NTAPI
+ObpValidateAccessMask(IN PACCESS_STATE AccessState)
+{
+ /* TODO */
return STATUS_SUCCESS;
}
@@ -2888,7 +2896,7 @@
AccessState->SecurityDescriptor = ObjectCreateInfo->SecurityDescriptor;
/* Validate the access mask */
- Status = STATUS_SUCCESS;//ObpValidateAccessMask(AccessState);
+ Status = ObpValidateAccessMask(AccessState);
if (!NT_SUCCESS(Status))
{
/* Fail */