Change ASSERTs to assert on existent variables
Modified: trunk/reactos/drivers/dd/serial/devctrl.c
Modified: trunk/reactos/drivers/dd/serial/pnp.c

Modified: trunk/reactos/drivers/dd/serial/devctrl.c
--- trunk/reactos/drivers/dd/serial/devctrl.c	2005-05-12 21:45:20 UTC (rev 15251)
+++ trunk/reactos/drivers/dd/serial/devctrl.c	2005-05-12 21:46:50 UTC (rev 15252)
@@ -201,9 +201,11 @@
 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

Modified: trunk/reactos/drivers/dd/serial/pnp.c
--- trunk/reactos/drivers/dd/serial/pnp.c	2005-05-12 21:45:20 UTC (rev 15251)
+++ trunk/reactos/drivers/dd/serial/pnp.c	2005-05-12 21:46:50 UTC (rev 15252)
@@ -31,7 +31,7 @@
 
 	DPRINT("Serial: SerialAddDeviceInternal called\n");
 
-	ASSERT(DeviceObject);
+	ASSERT(DriverObject);
 	ASSERT(Pdo);
 
 	/* Create new device object */