From b4a414fec79c984eaaec944d24c86e3d594b9f75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Tue, 10 May 2005 09:38:20 +0000 Subject: [PATCH] Allow a NULL PeripheralType in IoQueryDeviceDescription svn path=/trunk/; revision=15202 --- reactos/ntoskrnl/io/resource.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/reactos/ntoskrnl/io/resource.c b/reactos/ntoskrnl/io/resource.c index c171aa54c70..49c78788fc6 100644 --- a/reactos/ntoskrnl/io/resource.c +++ b/reactos/ntoskrnl/io/resource.c @@ -255,7 +255,7 @@ IopQueryDeviceDescription( goto EndLoop; /* We now have Bus *AND* Controller Information.. is it enough? */ - if (!(*Query->PeripheralType)) + if (!Query->PeripheralType || !(*Query->PeripheralType)) { Status = Query->CalloutRoutine( Query->Context, @@ -740,12 +740,12 @@ IoAssignResources(PUNICODE_STRING RegistryPath, */ NTSTATUS NTAPI -IoQueryDeviceDescription(PINTERFACE_TYPE BusType, - PULONG BusNumber, - PCONFIGURATION_TYPE ControllerType, - PULONG ControllerNumber, - PCONFIGURATION_TYPE PeripheralType, - PULONG PeripheralNumber, +IoQueryDeviceDescription(PINTERFACE_TYPE BusType OPTIONAL, + PULONG BusNumber OPTIONAL, + PCONFIGURATION_TYPE ControllerType OPTIONAL, + PULONG ControllerNumber OPTIONAL, + PCONFIGURATION_TYPE PeripheralType OPTIONAL, + PULONG PeripheralNumber OPTIONAL, PIO_QUERY_DEVICE_ROUTINE CalloutRoutine, PVOID Context) {