mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 10:52:52 +00:00
It doesn't seem required to be called once with a NULL PDO.
Force this call, as it is where we initialize the keyboard/mouse svn path=/trunk/; revision=27001
This commit is contained in:
parent
5f83cc2f85
commit
f5d19e8198
|
@ -723,6 +723,7 @@ static NTSTATUS STDCALL I8042AddDevice(PDRIVER_OBJECT DriverObject,
|
|||
PDEVICE_EXTENSION DevExt;
|
||||
PFDO_DEVICE_EXTENSION FdoDevExt;
|
||||
PDEVICE_OBJECT Fdo;
|
||||
static BOOLEAN AlreadyInitialized = FALSE;
|
||||
|
||||
DPRINT("I8042AddDevice\n");
|
||||
|
||||
|
@ -733,6 +734,10 @@ static NTSTATUS STDCALL I8042AddDevice(PDRIVER_OBJECT DriverObject,
|
|||
return STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
|
||||
if (AlreadyInitialized)
|
||||
return STATUS_SUCCESS;
|
||||
AlreadyInitialized = TRUE;
|
||||
|
||||
Status = IoCreateDevice(DriverObject,
|
||||
sizeof(DEVICE_EXTENSION),
|
||||
NULL,
|
||||
|
@ -949,6 +954,7 @@ NTSTATUS STDCALL DriverEntry(PDRIVER_OBJECT DriverObject,
|
|||
|
||||
DriverObject->DriverStartIo = I8042StartIo;
|
||||
DriverObject->DriverExtension->AddDevice = I8042AddDevice;
|
||||
I8042AddDevice(DriverObject, NULL);
|
||||
|
||||
return(STATUS_SUCCESS);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue