Author: ekohl
Date: Sun Feb 1 12:24:03 2015
New Revision: 66136
URL:
http://svn.reactos.org/svn/reactos?rev=66136&view=rev
Log:
[NTOSKRNL]
Set invalid atributes for the mutant object type. This fixes a kmtest:ObTypes bug.
Modified:
trunk/reactos/ntoskrnl/ex/mutant.c
Modified: trunk/reactos/ntoskrnl/ex/mutant.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/mutant.c?rev=6…
==============================================================================
--- trunk/reactos/ntoskrnl/ex/mutant.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ex/mutant.c [iso-8859-1] Sun Feb 1 12:24:03 2015
@@ -69,6 +69,7 @@
ObjectTypeInitializer.PoolType = NonPagedPool;
ObjectTypeInitializer.DeleteProcedure = ExpDeleteMutant;
ObjectTypeInitializer.ValidAccessMask = MUTANT_ALL_ACCESS;
+ ObjectTypeInitializer.InvalidAttributes = OBJ_OPENLINK;
Status = ObCreateObjectType(&Name, &ObjectTypeInitializer, NULL,
&ExMutantObjectType);
if (!NT_SUCCESS(Status)) return FALSE;
return TRUE;