fix uninitialized variable warnings

svn path=/trunk/; revision=14526
This commit is contained in:
Royce Mitchell III 2005-04-06 12:32:14 +00:00
parent 2cec8d9d65
commit b8442ebcdd
2 changed files with 2 additions and 2 deletions

View file

@ -105,7 +105,7 @@ ReportDetectedDevice(
IN PUNICODE_STRING CompatibleIds) IN PUNICODE_STRING CompatibleIds)
{ {
PDEVICE_OBJECT Pdo = NULL; PDEVICE_OBJECT Pdo = NULL;
PPDO_DEVICE_EXTENSION PdoDeviceExtension; PPDO_DEVICE_EXTENSION PdoDeviceExtension = NULL;
PFDO_DEVICE_EXTENSION FdoDeviceExtension; PFDO_DEVICE_EXTENSION FdoDeviceExtension;
NTSTATUS Status; NTSTATUS Status;

View file

@ -100,7 +100,7 @@ SerenumFdoQueryBusRelations(
PDEVICE_RELATIONS DeviceRelations; PDEVICE_RELATIONS DeviceRelations;
ULONG NumPDO; ULONG NumPDO;
ULONG i; ULONG i;
NTSTATUS Status; NTSTATUS Status = STATUS_SUCCESS;
DeviceExtension = (PFDO_DEVICE_EXTENSION)DeviceObject->DeviceExtension; DeviceExtension = (PFDO_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
ASSERT(DeviceExtension->Common.IsFDO); ASSERT(DeviceExtension->Common.IsFDO);