mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 07:46:29 +00:00
Fix indentation. No code changes.
svn path=/trunk/; revision=44912
This commit is contained in:
parent
302578ff72
commit
d9a4e205a7
1 changed files with 128 additions and 125 deletions
|
@ -148,8 +148,7 @@ IopGetDeviceObjectFromDeviceInstance(PUNICODE_STRING DeviceInstance)
|
|||
return NULL;
|
||||
|
||||
if (DeviceInstance == NULL ||
|
||||
DeviceInstance->Length == 0
|
||||
)
|
||||
DeviceInstance->Length == 0)
|
||||
{
|
||||
if (IopRootDeviceNode->PhysicalDeviceObject)
|
||||
{
|
||||
|
@ -180,6 +179,7 @@ IopCaptureUnicodeString(PUNICODE_STRING DstName, PUNICODE_STRING SrcName)
|
|||
Status = STATUS_INVALID_PARAMETER;
|
||||
_SEH2_LEAVE;
|
||||
}
|
||||
|
||||
if (Name.MaximumLength)
|
||||
{
|
||||
ProbeForRead(SrcName->Buffer,
|
||||
|
@ -191,13 +191,16 @@ IopCaptureUnicodeString(PUNICODE_STRING DstName, PUNICODE_STRING SrcName)
|
|||
Status = STATUS_INSUFFICIENT_RESOURCES;
|
||||
_SEH2_LEAVE;
|
||||
}
|
||||
|
||||
memcpy(Name.Buffer, SrcName->Buffer, Name.MaximumLength);
|
||||
}
|
||||
|
||||
*DstName = Name;
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
if (Name.Buffer) ExFreePool(Name.Buffer);
|
||||
if (Name.Buffer)
|
||||
ExFreePool(Name.Buffer);
|
||||
Status = _SEH2_GetExceptionCode();
|
||||
}
|
||||
_SEH2_END;
|
||||
|
@ -253,7 +256,6 @@ IopGetDeviceProperty(PPLUGPLAY_CONTROL_PROPERTY_DATA PropertyData)
|
|||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
}
|
||||
|
||||
|
||||
Status = IoGetDeviceProperty(DeviceObject,
|
||||
Property,
|
||||
BufferSize,
|
||||
|
@ -275,6 +277,7 @@ IopGetDeviceProperty(PPLUGPLAY_CONTROL_PROPERTY_DATA PropertyData)
|
|||
}
|
||||
_SEH2_END;
|
||||
}
|
||||
|
||||
ExFreePool(Buffer);
|
||||
return Status;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue