[ros-diffs] [hpoussin] 35412: Device type can be undefined if kbdclass or mouclass is not loaded.

hpoussin at svn.reactos.org hpoussin at svn.reactos.org
Sun Aug 17 20:11:32 CEST 2008


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.c?rev=35412&r1=35411&r2=35412&view=diff
==============================================================================
--- 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;
 		}
 	}



More information about the Ros-diffs mailing list