mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 08:15:41 +00:00
- [FORMATTING] Comment and formatting fixes for LocateChildDevice. No code change.
svn path=/trunk/; revision=35613
This commit is contained in:
parent
6f97ab13eb
commit
ca33f36d34
1 changed files with 7 additions and 2 deletions
|
@ -100,19 +100,24 @@ LocateChildDevice(
|
||||||
PPNPROOT_DEVICE Device;
|
PPNPROOT_DEVICE Device;
|
||||||
UNICODE_STRING DeviceIdU, InstanceIdU;
|
UNICODE_STRING DeviceIdU, InstanceIdU;
|
||||||
|
|
||||||
|
/* Initialize the strings to compare */
|
||||||
RtlInitUnicodeString(&DeviceIdU, DeviceId);
|
RtlInitUnicodeString(&DeviceIdU, DeviceId);
|
||||||
RtlInitUnicodeString(&InstanceIdU, InstanceId);
|
RtlInitUnicodeString(&InstanceIdU, InstanceId);
|
||||||
|
|
||||||
|
/* Start looping */
|
||||||
LIST_FOR_EACH(Device, &DeviceExtension->DeviceListHead, PNPROOT_DEVICE, ListEntry)
|
LIST_FOR_EACH(Device, &DeviceExtension->DeviceListHead, PNPROOT_DEVICE, ListEntry)
|
||||||
{
|
{
|
||||||
if (RtlEqualUnicodeString(&DeviceIdU, &Device->DeviceID, TRUE)
|
/* See if the strings match */
|
||||||
&& RtlEqualUnicodeString(&InstanceIdU, &Device->InstanceID, TRUE))
|
if (RtlEqualUnicodeString(&DeviceIdU, &Device->DeviceID, TRUE) &&
|
||||||
|
RtlEqualUnicodeString(&InstanceIdU, &Device->InstanceID, TRUE))
|
||||||
{
|
{
|
||||||
|
/* They do, so set the pointer and return success */
|
||||||
*ChildDevice = Device;
|
*ChildDevice = Device;
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* No device found */
|
||||||
return STATUS_NO_SUCH_DEVICE;
|
return STATUS_NO_SUCH_DEVICE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue