diff --git a/reactos/drivers/bus/serenum/detect.c b/reactos/drivers/bus/serenum/detect.c index 8ca0f2619d4..4a7ca07755a 100644 --- a/reactos/drivers/bus/serenum/detect.c +++ b/reactos/drivers/bus/serenum/detect.c @@ -105,7 +105,7 @@ ReportDetectedDevice( IN PUNICODE_STRING CompatibleIds) { PDEVICE_OBJECT Pdo = NULL; - PPDO_DEVICE_EXTENSION PdoDeviceExtension; + PPDO_DEVICE_EXTENSION PdoDeviceExtension = NULL; PFDO_DEVICE_EXTENSION FdoDeviceExtension; NTSTATUS Status; diff --git a/reactos/drivers/bus/serenum/fdo.c b/reactos/drivers/bus/serenum/fdo.c index 8084cd1a6e0..fbad3937c21 100644 --- a/reactos/drivers/bus/serenum/fdo.c +++ b/reactos/drivers/bus/serenum/fdo.c @@ -100,7 +100,7 @@ SerenumFdoQueryBusRelations( PDEVICE_RELATIONS DeviceRelations; ULONG NumPDO; ULONG i; - NTSTATUS Status; + NTSTATUS Status = STATUS_SUCCESS; DeviceExtension = (PFDO_DEVICE_EXTENSION)DeviceObject->DeviceExtension; ASSERT(DeviceExtension->Common.IsFDO);