- [FORMATTING] Comment and formatting fixes for LocateChildDevice. No code change.

svn path=/trunk/; revision=35613
This commit is contained in:
Stefan Ginsberg 2008-08-24 20:40:27 +00:00
parent 6f97ab13eb
commit ca33f36d34

View file

@ -100,19 +100,24 @@ LocateChildDevice(
PPNPROOT_DEVICE Device;
UNICODE_STRING DeviceIdU, InstanceIdU;
/* Initialize the strings to compare */
RtlInitUnicodeString(&DeviceIdU, DeviceId);
RtlInitUnicodeString(&InstanceIdU, InstanceId);
/* Start looping */
LIST_FOR_EACH(Device, &DeviceExtension->DeviceListHead, PNPROOT_DEVICE, ListEntry)
{
if (RtlEqualUnicodeString(&DeviceIdU, &Device->DeviceID, TRUE)
&& RtlEqualUnicodeString(&InstanceIdU, &Device->InstanceID, TRUE))
/* See if the strings match */
if (RtlEqualUnicodeString(&DeviceIdU, &Device->DeviceID, TRUE) &&
RtlEqualUnicodeString(&InstanceIdU, &Device->InstanceID, TRUE))
{
/* They do, so set the pointer and return success */
*ChildDevice = Device;
return STATUS_SUCCESS;
}
}
/* No device found */
return STATUS_NO_SUCH_DEVICE;
}