--- trunk/reactos/ntoskrnl/include/internal/ob.h 2005-01-21 12:27:32 UTC (rev 13182)
+++ trunk/reactos/ntoskrnl/include/internal/ob.h 2005-01-21 13:25:28 UTC (rev 13183)
@@ -327,8 +327,8 @@
NTSTATUS
ObpCaptureObjectAttributes(IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
- IN POBJECT_TYPE ObjectType,
IN KPROCESSOR_MODE AccessMode,
+ IN POOL_TYPE PoolType,
IN BOOLEAN CaptureIfKernel,
OUT PCAPTURED_OBJECT_ATTRIBUTES CapturedObjectAttributes OPTIONAL,
OUT PUNICODE_STRING ObjectName OPTIONAL);
--- trunk/reactos/ntoskrnl/ob/object.c 2005-01-21 12:27:32 UTC (rev 13182)
+++ trunk/reactos/ntoskrnl/ob/object.c 2005-01-21 13:25:28 UTC (rev 13183)
@@ -41,8 +41,8 @@
NTSTATUS
ObpCaptureObjectAttributes(IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
- IN POBJECT_TYPE ObjectType,
IN KPROCESSOR_MODE AccessMode,
+ IN POOL_TYPE PoolType,
IN BOOLEAN CaptureIfKernel,
OUT PCAPTURED_OBJECT_ATTRIBUTES CapturedObjectAttributes OPTIONAL,
OUT PUNICODE_STRING ObjectName OPTIONAL)
@@ -135,7 +135,7 @@
{
Status = SeCaptureSecurityDescriptor(AttributesCopy.SecurityDescriptor,
AccessMode,
- PagedPool,
+ PoolType,
TRUE,
&CapturedObjectAttributes->SecurityDescriptor);
if(!NT_SUCCESS(Status))
@@ -183,7 +183,7 @@
if(OriginalCopy.Length > 0)
{
ObjectName->MaximumLength = OriginalCopy.Length + sizeof(WCHAR);
- ObjectName->Buffer = ExAllocatePool(NonPagedPool,
+ ObjectName->Buffer = ExAllocatePool(PoolType,
ObjectName->MaximumLength);
if(ObjectName->Buffer != NULL)
{
@@ -237,7 +237,7 @@
if(OriginalCopy.Length > 0)
{
ObjectName->MaximumLength = OriginalCopy.Length + sizeof(WCHAR);
- ObjectName->Buffer = ExAllocatePool(NonPagedPool,
+ ObjectName->Buffer = ExAllocatePool(PoolType,
ObjectName->MaximumLength);
if(ObjectName->Buffer != NULL)
{