Migrate handle table calls from executive to object manager

This commit is contained in:
2026-08-06 12:27:43 +02:00
parent 8d639f7c97
commit 3a05d2f2f6

View File

@@ -1514,7 +1514,7 @@ OB::LifeCycle::ReferenceObject(IN HANDLE Handle,
KE::CriticalRegionGuard CriticalRegion(&Thread->ThreadControlBlock); KE::CriticalRegionGuard CriticalRegion(&Thread->ThreadControlBlock);
/* Map the given handle to its underlying physical table entry */ /* Map the given handle to its underlying physical table entry */
ObjectTableEntry = EX::Handle::MapHandleToPointer(HandleTable, Handle); ObjectTableEntry = OB::HandleTable::MapHandleToPointer(HandleTable, Handle);
if(!ObjectTableEntry) if(!ObjectTableEntry)
{ {
/* The handle is invalid or closed, return error code */ /* The handle is invalid or closed, return error code */
@@ -1555,7 +1555,7 @@ OB::LifeCycle::ReferenceObject(IN HANDLE Handle,
if((ObjectTableEntry->ObAttributes & OBJECT_AUDIT_OBJECT_CLOSE) && AccessMask && ProcessorMode != KernelMode) if((ObjectTableEntry->ObAttributes & OBJECT_AUDIT_OBJECT_CLOSE) && AccessMask && ProcessorMode != KernelMode)
{ {
/* Fetch the handle information */ /* Fetch the handle information */
ObjectInfo = EX::Handle::GetHandleInformation(HandleTable, Handle, TRUE); ObjectInfo = OB::HandleTable::GetHandleInformation(HandleTable, Handle, TRUE);
if(ObjectInfo && ObjectInfo->AuditMask) if(ObjectInfo && ObjectInfo->AuditMask)
{ {
/* Generate a security audit event */ /* Generate a security audit event */
@@ -1573,7 +1573,7 @@ OB::LifeCycle::ReferenceObject(IN HANDLE Handle,
} }
/* Release the handle table */ /* Release the handle table */
EX::Handle::UnlockHandleTableEntry(HandleTable, ObjectTableEntry); OB::HandleTable::UnlockHandleTableEntry(HandleTable, ObjectTableEntry);
/* Return status code */ /* Return status code */
return Status; return Status;