mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user