diff --git a/reactos/drivers/dd/serial/devctrl.c b/reactos/drivers/dd/serial/devctrl.c index ad88cd198db..163710f8946 100644 --- a/reactos/drivers/dd/serial/devctrl.c +++ b/reactos/drivers/dd/serial/devctrl.c @@ -201,9 +201,11 @@ BOOLEAN SerialGetPerfStats(IN PIRP pIrp) { PSERIAL_DEVICE_EXTENSION pDeviceExtension; + + ASSERT(Irp); pDeviceExtension = (PSERIAL_DEVICE_EXTENSION) IoGetCurrentIrpStackLocation(pIrp)->DeviceObject->DeviceExtension; - ASSERT(DeviceExtension); + /* * we assume buffer is big enough to hold SerialPerfStats structure * caller must verify this diff --git a/reactos/drivers/dd/serial/pnp.c b/reactos/drivers/dd/serial/pnp.c index 70417d69986..4fe8dec53cf 100644 --- a/reactos/drivers/dd/serial/pnp.c +++ b/reactos/drivers/dd/serial/pnp.c @@ -31,7 +31,7 @@ SerialAddDeviceInternal( DPRINT("Serial: SerialAddDeviceInternal called\n"); - ASSERT(DeviceObject); + ASSERT(DriverObject); ASSERT(Pdo); /* Create new device object */