mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +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
1 changed files with 6 additions and 0 deletions
|
@ -723,6 +723,7 @@ static NTSTATUS STDCALL I8042AddDevice(PDRIVER_OBJECT DriverObject,
|
||||||
PDEVICE_EXTENSION DevExt;
|
PDEVICE_EXTENSION DevExt;
|
||||||
PFDO_DEVICE_EXTENSION FdoDevExt;
|
PFDO_DEVICE_EXTENSION FdoDevExt;
|
||||||
PDEVICE_OBJECT Fdo;
|
PDEVICE_OBJECT Fdo;
|
||||||
|
static BOOLEAN AlreadyInitialized = FALSE;
|
||||||
|
|
||||||
DPRINT("I8042AddDevice\n");
|
DPRINT("I8042AddDevice\n");
|
||||||
|
|
||||||
|
@ -733,6 +734,10 @@ static NTSTATUS STDCALL I8042AddDevice(PDRIVER_OBJECT DriverObject,
|
||||||
return STATUS_UNSUCCESSFUL;
|
return STATUS_UNSUCCESSFUL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (AlreadyInitialized)
|
||||||
|
return STATUS_SUCCESS;
|
||||||
|
AlreadyInitialized = TRUE;
|
||||||
|
|
||||||
Status = IoCreateDevice(DriverObject,
|
Status = IoCreateDevice(DriverObject,
|
||||||
sizeof(DEVICE_EXTENSION),
|
sizeof(DEVICE_EXTENSION),
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -949,6 +954,7 @@ NTSTATUS STDCALL DriverEntry(PDRIVER_OBJECT DriverObject,
|
||||||
|
|
||||||
DriverObject->DriverStartIo = I8042StartIo;
|
DriverObject->DriverStartIo = I8042StartIo;
|
||||||
DriverObject->DriverExtension->AddDevice = I8042AddDevice;
|
DriverObject->DriverExtension->AddDevice = I8042AddDevice;
|
||||||
|
I8042AddDevice(DriverObject, NULL);
|
||||||
|
|
||||||
return(STATUS_SUCCESS);
|
return(STATUS_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue