Author: tkreuzer
Date: Wed Nov 20 21:52:50 2013
New Revision: 61059
URL:
http://svn.reactos.org/svn/reactos?rev=61059&view=rev
Log:
[NTOSKRNL]
Implement ObDeleteCapturedInsertInfo
Modified:
trunk/reactos/ntoskrnl/ob/oblife.c
Modified: trunk/reactos/ntoskrnl/ob/oblife.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ob/oblife.c?rev=6…
==============================================================================
--- trunk/reactos/ntoskrnl/ob/oblife.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ob/oblife.c [iso-8859-1] Wed Nov 20 21:52:50 2013
@@ -1276,8 +1276,18 @@
NTAPI
ObDeleteCapturedInsertInfo(IN PVOID Object)
{
- UNIMPLEMENTED;
- return;
+ POBJECT_HEADER ObjectHeader;
+ PAGED_CODE();
+
+ /* Check if there is anything to free */
+ ObjectHeader = OBJECT_TO_OBJECT_HEADER(Object);
+ if ((ObjectHeader->Flags & OB_FLAG_CREATE_INFO) &&
+ (ObjectHeader->ObjectCreateInfo != NULL))
+ {
+ /* Free the create info */
+ ObpFreeObjectCreateInformation(ObjectHeader->ObjectCreateInfo);
+ ObjectHeader->ObjectCreateInfo = NULL;
+ }
}
VOID