mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
CORE-13048. [I8042PRT] keyboard.c: Restore 1 "Irql =" (which was lost in r30000). (#63)
[I8042PRT] Restore 1 "Irql =" (which was lost in r30000). CORE-13048
This commit is contained in:
parent
b46d3ce5e9
commit
deb9c5416f
1 changed files with 4 additions and 1 deletions
|
@ -369,7 +369,10 @@ i8042KbdDpcRoutine(
|
||||||
DeviceExtension->KeyboardBuffer + KeysInBufferCopy,
|
DeviceExtension->KeyboardBuffer + KeysInBufferCopy,
|
||||||
&KeysTransferred);
|
&KeysTransferred);
|
||||||
|
|
||||||
KeAcquireInterruptSpinLock(PortDeviceExtension->HighestDIRQLInterrupt);
|
/* Validate that the callback didn't change the Irql. */
|
||||||
|
ASSERT(KeGetCurrentIrql() == Irql);
|
||||||
|
|
||||||
|
Irql = KeAcquireInterruptSpinLock(PortDeviceExtension->HighestDIRQLInterrupt);
|
||||||
DeviceExtension->KeysInBuffer -= KeysTransferred;
|
DeviceExtension->KeysInBuffer -= KeysTransferred;
|
||||||
KeReleaseInterruptSpinLock(PortDeviceExtension->HighestDIRQLInterrupt, Irql);
|
KeReleaseInterruptSpinLock(PortDeviceExtension->HighestDIRQLInterrupt, Irql);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue