mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:05:49 +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;
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue