Author: hpoussin
Date: Sun Aug 17 13:11:32 2008
New Revision: 35412
URL:
http://svn.reactos.org/svn/reactos?rev=35412&view=rev
Log:
Device type can be undefined if kbdclass or mouclass is not loaded.
Modified:
trunk/reactos/drivers/input/i8042prt/pnp.c
Modified: trunk/reactos/drivers/input/i8042prt/pnp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/input/i8042prt/pnp…
==============================================================================
--- trunk/reactos/drivers/input/i8042prt/pnp.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/input/i8042prt/pnp.c [iso-8859-1] Sun Aug 17 13:11:32 2008
@@ -617,8 +617,8 @@
}
default:
{
- ERR_(I8042PRT, "Unknown FDO type %u\n", DeviceExtension->Type);
- ASSERT(FALSE);
+ WARN_(I8042PRT, "Unknown FDO type %u\n", DeviceExtension->Type);
+ ASSERT(!(PortDeviceExtension->Flags & KEYBOARD_CONNECTED) ||
!(PortDeviceExtension->Flags & MOUSE_CONNECTED));
Status = STATUS_INVALID_DEVICE_REQUEST;
}
}