Author: janderwald
Date: Fri Jul 25 09:04:37 2008
New Revision: 34784
URL:
http://svn.reactos.org/svn/reactos?rev=34784&view=rev
Log:
- identation janitor
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=3…
==============================================================================
--- trunk/reactos/ntoskrnl/ob/oblife.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ob/oblife.c [iso-8859-1] Fri Jul 25 09:04:37 2008
@@ -303,15 +303,17 @@
if (!(UseLookaside) || (MaximumLength > OBP_NAME_LOOKASIDE_MAX_SIZE))
{
/* Nope, allocate directly from pool */
- /* Since we later use MaximumLength to detect that we're not allocating
- * from a list, we need at least MaximumLength + sizeof(UNICODE_NULL)
- * here.
- *
- * People do call this with UseLookasideList FALSE so the distinction
- * is critical.
- */
- if (MaximumLength <= OBP_NAME_LOOKASIDE_MAX_SIZE)
- MaximumLength = OBP_NAME_LOOKASIDE_MAX_SIZE + sizeof(UNICODE_NULL);
+ /* Since we later use MaximumLength to detect that we're not allocating
+ * from a list, we need at least MaximumLength + sizeof(UNICODE_NULL)
+ * here.
+ *
+ * People do call this with UseLookasideList FALSE so the distinction
+ * is critical.
+ */
+ if (MaximumLength <= OBP_NAME_LOOKASIDE_MAX_SIZE)
+ {
+ MaximumLength = OBP_NAME_LOOKASIDE_MAX_SIZE + sizeof(UNICODE_NULL);
+ }
Buffer = ExAllocatePoolWithTag(PagedPool,
MaximumLength,
OB_NAME_TAG);
@@ -319,7 +321,7 @@
else
{
/* Allocate from the lookaside */
- MaximumLength = OBP_NAME_LOOKASIDE_MAX_SIZE;
+ MaximumLength = OBP_NAME_LOOKASIDE_MAX_SIZE;
Buffer = ObpAllocateObjectCreateInfoBuffer(LookasideNameBufferList);
}
@@ -417,7 +419,10 @@
{
/* Handle exception and free the string buffer */
Status = _SEH_GetExceptionCode();
- if (StringBuffer) ObpFreeObjectNameBuffer(CapturedName);
+ if (StringBuffer)
+ {
+ ObpFreeObjectNameBuffer(CapturedName);
+ }
}
_SEH_END;
@@ -486,7 +491,7 @@
if(!NT_SUCCESS(Status))
{
/* Capture failed, quit */
- ObjectCreateInfo->SecurityDescriptor = NULL;
+ ObjectCreateInfo->SecurityDescriptor = NULL;
_SEH_LEAVE;
}