Display debug error message only when action fails

svn path=/trunk/; revision=17794
This commit is contained in:
Hervé Poussineau 2005-09-11 09:23:16 +00:00
parent 24a13ab689
commit 975f584df9

View file

@ -1329,9 +1329,9 @@ IopActionInterrogateDeviceStack(
}
Status = IopQueryDeviceCapabilities(DeviceNode, &DeviceCapabilities);
if (NT_SUCCESS(Status))
if (!NT_SUCCESS(Status))
{
DPRINT("IopInitiatePnpIrp() failed (Status %x)\n", Status);
DPRINT("IopInitiatePnpIrp() failed (Status 0x%08lx)\n", Status);
}
DeviceNode->CapabilityFlags = *(PULONG)((ULONG_PTR)&DeviceCapabilities + 4);