mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
fixed the keyboard driver crash if there was no mouse detected, maybe not the best solution but it seems to work. win32k still expects a mouse though
svn path=/trunk/; revision=6200
This commit is contained in:
parent
55cfd3e3f4
commit
336b105291
1 changed files with 10 additions and 0 deletions
|
@ -617,6 +617,16 @@ BOOLEAN SetupMouse(PDEVICE_OBJECT DeviceObject, PUNICODE_STRING RegistryPath)
|
|||
IoConnectInterrupt(&DeviceExtension->MouseInterrupt, MouseHandler, DeviceObject, NULL, MappedIrq,
|
||||
Dirql, Dirql, 0, FALSE, Affinity, FALSE);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* FIXME - this fixes the crash if no mouse was detected */
|
||||
|
||||
// Connect the interrupt for the mouse irq
|
||||
MappedIrq = HalGetInterruptVector(Internal, 0, 0, MOUSE_IRQ, &Dirql, &Affinity);
|
||||
|
||||
IoConnectInterrupt(&DeviceExtension->MouseInterrupt, MouseHandler, DeviceObject, NULL, MappedIrq,
|
||||
Dirql, Dirql, 0, FALSE, Affinity, FALSE);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue