mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 02:26:03 +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;
|
return NULL;
|
||||||
|
|
||||||
if (DeviceInstance == NULL ||
|
if (DeviceInstance == NULL ||
|
||||||
DeviceInstance->Length == 0
|
DeviceInstance->Length == 0)
|
||||||
)
|
|
||||||
{
|
{
|
||||||
if (IopRootDeviceNode->PhysicalDeviceObject)
|
if (IopRootDeviceNode->PhysicalDeviceObject)
|
||||||
{
|
{
|
||||||
|
@ -180,6 +179,7 @@ IopCaptureUnicodeString(PUNICODE_STRING DstName, PUNICODE_STRING SrcName)
|
||||||
Status = STATUS_INVALID_PARAMETER;
|
Status = STATUS_INVALID_PARAMETER;
|
||||||
_SEH2_LEAVE;
|
_SEH2_LEAVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Name.MaximumLength)
|
if (Name.MaximumLength)
|
||||||
{
|
{
|
||||||
ProbeForRead(SrcName->Buffer,
|
ProbeForRead(SrcName->Buffer,
|
||||||
|
@ -191,13 +191,16 @@ IopCaptureUnicodeString(PUNICODE_STRING DstName, PUNICODE_STRING SrcName)
|
||||||
Status = STATUS_INSUFFICIENT_RESOURCES;
|
Status = STATUS_INSUFFICIENT_RESOURCES;
|
||||||
_SEH2_LEAVE;
|
_SEH2_LEAVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(Name.Buffer, SrcName->Buffer, Name.MaximumLength);
|
memcpy(Name.Buffer, SrcName->Buffer, Name.MaximumLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
*DstName = Name;
|
*DstName = Name;
|
||||||
}
|
}
|
||||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||||
{
|
{
|
||||||
if (Name.Buffer) ExFreePool(Name.Buffer);
|
if (Name.Buffer)
|
||||||
|
ExFreePool(Name.Buffer);
|
||||||
Status = _SEH2_GetExceptionCode();
|
Status = _SEH2_GetExceptionCode();
|
||||||
}
|
}
|
||||||
_SEH2_END;
|
_SEH2_END;
|
||||||
|
@ -253,7 +256,6 @@ IopGetDeviceProperty(PPLUGPLAY_CONTROL_PROPERTY_DATA PropertyData)
|
||||||
return STATUS_INSUFFICIENT_RESOURCES;
|
return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Status = IoGetDeviceProperty(DeviceObject,
|
Status = IoGetDeviceProperty(DeviceObject,
|
||||||
Property,
|
Property,
|
||||||
BufferSize,
|
BufferSize,
|
||||||
|
@ -275,6 +277,7 @@ IopGetDeviceProperty(PPLUGPLAY_CONTROL_PROPERTY_DATA PropertyData)
|
||||||
}
|
}
|
||||||
_SEH2_END;
|
_SEH2_END;
|
||||||
}
|
}
|
||||||
|
|
||||||
ExFreePool(Buffer);
|
ExFreePool(Buffer);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue