mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
DEVICE_RELATIONS->Count is ULONG
svn path=/trunk/; revision=35535
This commit is contained in:
parent
44fdf97ae2
commit
60ef511bb8
1 changed files with 2 additions and 6 deletions
|
@ -1696,17 +1696,13 @@ IopEnumerateDevice(
|
||||||
|
|
||||||
DeviceRelations = (PDEVICE_RELATIONS)IoStatusBlock.Information;
|
DeviceRelations = (PDEVICE_RELATIONS)IoStatusBlock.Information;
|
||||||
|
|
||||||
if (!DeviceRelations || DeviceRelations->Count < 0)
|
if (!DeviceRelations)
|
||||||
{
|
{
|
||||||
DPRINT("No PDOs\n");
|
DPRINT("No PDOs\n");
|
||||||
if (DeviceRelations)
|
|
||||||
{
|
|
||||||
ExFreePool(DeviceRelations);
|
|
||||||
}
|
|
||||||
return STATUS_UNSUCCESSFUL;
|
return STATUS_UNSUCCESSFUL;
|
||||||
}
|
}
|
||||||
|
|
||||||
DPRINT("Got %d PDOs\n", DeviceRelations->Count);
|
DPRINT("Got %u PDOs\n", DeviceRelations->Count);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create device nodes for all discovered devices
|
* Create device nodes for all discovered devices
|
||||||
|
|
Loading…
Reference in a new issue