mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:36:11 +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
|
@ -311,7 +311,9 @@ ObpAllocateObjectNameBuffer(IN ULONG Length,
|
|||
* 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);
|
||||
|
@ -417,7 +419,10 @@ ObpCaptureObjectName(IN OUT PUNICODE_STRING CapturedName,
|
|||
{
|
||||
/* Handle exception and free the string buffer */
|
||||
Status = _SEH_GetExceptionCode();
|
||||
if (StringBuffer) ObpFreeObjectNameBuffer(CapturedName);
|
||||
if (StringBuffer)
|
||||
{
|
||||
ObpFreeObjectNameBuffer(CapturedName);
|
||||
}
|
||||
}
|
||||
_SEH_END;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue