--- trunk/reactos/ntoskrnl/ob/object.c 2005-01-21 10:28:13 UTC (rev 13179)
+++ trunk/reactos/ntoskrnl/ob/object.c 2005-01-21 10:33:30 UTC (rev 13180)
@@ -90,8 +90,10 @@
}
else if(AccessMode == KernelMode && !CaptureIfKernel)
{
- if(AttributesCopy.Length != sizeof(OBJECT_ATTRIBUTES))
+ if(ObjectAttributes->Length != sizeof(OBJECT_ATTRIBUTES))
{
+ /* we don't have to capture any memory, the caller considers the passed data
+ as valid */
if(ObjectName != NULL)
{
*ObjectName = *ObjectAttributes->ObjectName;
@@ -102,14 +104,14 @@
CapturedObjectAttributes->Attributes = ObjectAttributes->Attributes;
CapturedObjectAttributes->SecurityDescriptor = ObjectAttributes->SecurityDescriptor;
}
+
+ return STATUS_SUCCESS;
}
else
{
Status = STATUS_INVALID_PARAMETER;
goto failbasiccleanup;
}
-
- return STATUS_SUCCESS;
}
else
{