mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:05:43 +00:00
- identation janitor
svn path=/trunk/; revision=34784
This commit is contained in:
parent
6ae9a99375
commit
7cf8ccf54f
1 changed files with 17 additions and 12 deletions
|
@ -303,15 +303,17 @@ ObpAllocateObjectNameBuffer(IN ULONG Length,
|
||||||
if (!(UseLookaside) || (MaximumLength > OBP_NAME_LOOKASIDE_MAX_SIZE))
|
if (!(UseLookaside) || (MaximumLength > OBP_NAME_LOOKASIDE_MAX_SIZE))
|
||||||
{
|
{
|
||||||
/* Nope, allocate directly from pool */
|
/* Nope, allocate directly from pool */
|
||||||
/* Since we later use MaximumLength to detect that we're not allocating
|
/* Since we later use MaximumLength to detect that we're not allocating
|
||||||
* from a list, we need at least MaximumLength + sizeof(UNICODE_NULL)
|
* from a list, we need at least MaximumLength + sizeof(UNICODE_NULL)
|
||||||
* here.
|
* here.
|
||||||
*
|
*
|
||||||
* People do call this with UseLookasideList FALSE so the distinction
|
* People do call this with UseLookasideList FALSE so the distinction
|
||||||
* is critical.
|
* is critical.
|
||||||
*/
|
*/
|
||||||
if (MaximumLength <= OBP_NAME_LOOKASIDE_MAX_SIZE)
|
if (MaximumLength <= OBP_NAME_LOOKASIDE_MAX_SIZE)
|
||||||
MaximumLength = OBP_NAME_LOOKASIDE_MAX_SIZE + sizeof(UNICODE_NULL);
|
{
|
||||||
|
MaximumLength = OBP_NAME_LOOKASIDE_MAX_SIZE + sizeof(UNICODE_NULL);
|
||||||
|
}
|
||||||
Buffer = ExAllocatePoolWithTag(PagedPool,
|
Buffer = ExAllocatePoolWithTag(PagedPool,
|
||||||
MaximumLength,
|
MaximumLength,
|
||||||
OB_NAME_TAG);
|
OB_NAME_TAG);
|
||||||
|
@ -319,7 +321,7 @@ ObpAllocateObjectNameBuffer(IN ULONG Length,
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Allocate from the lookaside */
|
/* Allocate from the lookaside */
|
||||||
MaximumLength = OBP_NAME_LOOKASIDE_MAX_SIZE;
|
MaximumLength = OBP_NAME_LOOKASIDE_MAX_SIZE;
|
||||||
Buffer = ObpAllocateObjectCreateInfoBuffer(LookasideNameBufferList);
|
Buffer = ObpAllocateObjectCreateInfoBuffer(LookasideNameBufferList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -417,7 +419,10 @@ ObpCaptureObjectName(IN OUT PUNICODE_STRING CapturedName,
|
||||||
{
|
{
|
||||||
/* Handle exception and free the string buffer */
|
/* Handle exception and free the string buffer */
|
||||||
Status = _SEH_GetExceptionCode();
|
Status = _SEH_GetExceptionCode();
|
||||||
if (StringBuffer) ObpFreeObjectNameBuffer(CapturedName);
|
if (StringBuffer)
|
||||||
|
{
|
||||||
|
ObpFreeObjectNameBuffer(CapturedName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
_SEH_END;
|
_SEH_END;
|
||||||
|
|
||||||
|
@ -486,7 +491,7 @@ ObpCaptureObjectCreateInformation(IN POBJECT_ATTRIBUTES ObjectAttributes,
|
||||||
if(!NT_SUCCESS(Status))
|
if(!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
/* Capture failed, quit */
|
/* Capture failed, quit */
|
||||||
ObjectCreateInfo->SecurityDescriptor = NULL;
|
ObjectCreateInfo->SecurityDescriptor = NULL;
|
||||||
_SEH_LEAVE;
|
_SEH_LEAVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue