mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 11:53:32 +00:00
Prevent i8042prt to search for a keyboard/mouse more than once
svn path=/trunk/; revision=18902
This commit is contained in:
@@ -647,9 +647,15 @@ static NTSTATUS STDCALL I8042AddDevice(PDRIVER_OBJECT DriverObject,
|
||||
PDEVICE_EXTENSION DevExt;
|
||||
PFDO_DEVICE_EXTENSION FdoDevExt;
|
||||
PDEVICE_OBJECT Fdo;
|
||||
static BOOLEAN AlreadyAdded = FALSE;
|
||||
|
||||
DPRINT("I8042AddDevice\n");
|
||||
|
||||
/* HACK! */
|
||||
if (AlreadyAdded)
|
||||
return STATUS_UNSUCCESSFUL;
|
||||
AlreadyAdded = TRUE;
|
||||
|
||||
Status = IoCreateDevice(DriverObject,
|
||||
sizeof(DEVICE_EXTENSION),
|
||||
NULL,
|
||||
|
||||
Reference in New Issue
Block a user