From 55e1373fc569d2ee56743fcab85908e2577293a9 Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Thu, 9 Jul 2026 09:04:53 +0200 Subject: [PATCH] Apply access right definitions in Object Manager type registry --- xtoskrnl/ob/typereg.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xtoskrnl/ob/typereg.cc b/xtoskrnl/ob/typereg.cc index fe312e7..ffe30d8 100644 --- a/xtoskrnl/ob/typereg.cc +++ b/xtoskrnl/ob/typereg.cc @@ -303,7 +303,7 @@ OB::TypeRegistry::InitializeObjectType(IN OUT POBJECT_TYPE ObjectType, { /* Map to the global default event and append the SYNCHRONIZE access right */ ObjectType->DefaultObject = &DefaultEvent; - ObjectType->TypeInfo.ValidAccessMask |= SYNCHRONIZE; + ObjectType->TypeInfo.ValidAccessMask |= SE_SYNCHRONIZE; } else if(TypeName->Length == 8 && !RTL::WideString::CompareWideString(TypeName->Buffer, L"File", 0)) { @@ -354,7 +354,7 @@ OB::TypeRegistry::InitializeObjectTypeRegistry(VOID) ObjectTypeInitializer.MaintainTypeList = TRUE; ObjectTypeInitializer.PoolType = NonPagedPool; ObjectTypeInitializer.UseDefaultObject = TRUE; - ObjectTypeInitializer.ValidAccessMask = OBJECT_TYPE_ALL_ACCESS; + ObjectTypeInitializer.ValidAccessMask = SE_OBJECT_TYPE_ALL_ACCESS; /* Register default destructor */ ObjectTypeInitializer.DeleteProcedure = &DeleteObjectType;