don't jump outside _SEH_TRY with goto in ObpCaptureObjectAttributes()

svn path=/trunk/; revision=18393
This commit is contained in:
Thomas Bluemel 2005-10-10 13:03:09 +00:00
parent a4bfa110a8
commit e0191cfd2a

View file

@ -155,7 +155,7 @@ ObpCaptureObjectAttributes(IN POBJECT_ATTRIBUTES ObjectAttributes,
Status = STATUS_INVALID_PARAMETER;
DPRINT1("Invalid Size: %lx or Attributes: %lx\n",
ObjectAttributes->Length, ObjectAttributes->Attributes);
goto Quickie;
_SEH_LEAVE;
}
/* Set some Create Info */
@ -179,7 +179,7 @@ ObpCaptureObjectAttributes(IN POBJECT_ATTRIBUTES ObjectAttributes,
{
DPRINT1("Unable to capture the security descriptor!!!\n");
ObjectCreateInfo->SecurityDescriptor = NULL;
goto Quickie;
_SEH_LEAVE;
}
DPRINT("Probe done\n");
@ -212,10 +212,11 @@ ObpCaptureObjectAttributes(IN POBJECT_ATTRIBUTES ObjectAttributes,
{
Status = _SEH_GetExceptionCode();
DPRINT1("Failed\n");
goto Quickie;
}
_SEH_END;
if (NT_SUCCESS(Status))
{
/* Now check if the Object Attributes had an Object Name */
if (LocalObjectName)
{
@ -236,9 +237,8 @@ ObpCaptureObjectAttributes(IN POBJECT_ATTRIBUTES ObjectAttributes,
Status = STATUS_OBJECT_NAME_INVALID;
}
}
Quickie:
if (!NT_SUCCESS(Status))
}
else
{
DPRINT1("Failed to capture, cleaning up\n");
ObpReleaseCapturedAttributes(ObjectCreateInfo);