mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 12:13:01 +00:00
fixed usage of uninitialized variable
svn path=/trunk/; revision=13180
This commit is contained in:
parent
f15230fffc
commit
0dbd86466b
1 changed files with 5 additions and 3 deletions
|
@ -90,8 +90,10 @@ failbasiccleanup:
|
||||||
}
|
}
|
||||||
else if(AccessMode == KernelMode && !CaptureIfKernel)
|
else if(AccessMode == KernelMode && !CaptureIfKernel)
|
||||||
{
|
{
|
||||||
if(AttributesCopy.Length != sizeof(OBJECT_ATTRIBUTES))
|
if(ObjectAttributes->Length != sizeof(OBJECT_ATTRIBUTES))
|
||||||
{
|
{
|
||||||
|
/* we don't have to capture any memory, the caller considers the passed data
|
||||||
|
as valid */
|
||||||
if(ObjectName != NULL)
|
if(ObjectName != NULL)
|
||||||
{
|
{
|
||||||
*ObjectName = *ObjectAttributes->ObjectName;
|
*ObjectName = *ObjectAttributes->ObjectName;
|
||||||
|
@ -102,14 +104,14 @@ failbasiccleanup:
|
||||||
CapturedObjectAttributes->Attributes = ObjectAttributes->Attributes;
|
CapturedObjectAttributes->Attributes = ObjectAttributes->Attributes;
|
||||||
CapturedObjectAttributes->SecurityDescriptor = ObjectAttributes->SecurityDescriptor;
|
CapturedObjectAttributes->SecurityDescriptor = ObjectAttributes->SecurityDescriptor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Status = STATUS_INVALID_PARAMETER;
|
Status = STATUS_INVALID_PARAMETER;
|
||||||
goto failbasiccleanup;
|
goto failbasiccleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue