DEVICE_RELATIONS->Count is ULONG

svn path=/trunk/; revision=35535
This commit is contained in:
Hervé Poussineau 2008-08-22 19:08:25 +00:00
parent 44fdf97ae2
commit 60ef511bb8

View file

@ -1696,17 +1696,13 @@ IopEnumerateDevice(
DeviceRelations = (PDEVICE_RELATIONS)IoStatusBlock.Information;
if (!DeviceRelations || DeviceRelations->Count < 0)
if (!DeviceRelations)
{
DPRINT("No PDOs\n");
if (DeviceRelations)
{
ExFreePool(DeviceRelations);
}
return STATUS_UNSUCCESSFUL;
}
DPRINT("Got %d PDOs\n", DeviceRelations->Count);
DPRINT("Got %u PDOs\n", DeviceRelations->Count);
/*
* Create device nodes for all discovered devices