mirror of
https://github.com/reactos/reactos.git
synced 2025-05-19 17:14:32 +00:00
- Revert 43410
svn path=/trunk/; revision=43411
This commit is contained in:
parent
9b46acbff0
commit
d6c99976ac
1 changed files with 2 additions and 2 deletions
|
@ -288,7 +288,7 @@ BeepUnload(IN PDRIVER_OBJECT DriverObject)
|
||||||
IoDeleteDevice(DeviceObject);
|
IoDeleteDevice(DeviceObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DRIVER_STARTIO BeepStartIo;
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
BeepStartIo(IN PDEVICE_OBJECT DeviceObject,
|
BeepStartIo(IN PDEVICE_OBJECT DeviceObject,
|
||||||
|
@ -303,7 +303,7 @@ BeepStartIo(IN PDEVICE_OBJECT DeviceObject,
|
||||||
|
|
||||||
/* Acquire the cancel lock and make sure the IRP is valid */
|
/* Acquire the cancel lock and make sure the IRP is valid */
|
||||||
IoAcquireCancelSpinLock(&CancelIrql);
|
IoAcquireCancelSpinLock(&CancelIrql);
|
||||||
if (Irp->Cancel)
|
if (!Irp)
|
||||||
{
|
{
|
||||||
/* It's not, release the lock and quit */
|
/* It's not, release the lock and quit */
|
||||||
IoReleaseCancelSpinLock(CancelIrql);
|
IoReleaseCancelSpinLock(CancelIrql);
|
||||||
|
|
Loading…
Reference in a new issue