Author: janderwald
Date: Mon Oct 12 20:27:00 2009
New Revision: 43411
URL:
http://svn.reactos.org/svn/reactos?rev=43411&view=rev
Log:
- Revert 43410
Modified:
trunk/reactos/drivers/base/beep/beep.c
Modified: trunk/reactos/drivers/base/beep/beep.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/base/beep/beep.c?r…
==============================================================================
--- trunk/reactos/drivers/base/beep/beep.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/base/beep/beep.c [iso-8859-1] Mon Oct 12 20:27:00 2009
@@ -288,7 +288,7 @@
IoDeleteDevice(DeviceObject);
}
-
+DRIVER_STARTIO BeepStartIo;
VOID
NTAPI
BeepStartIo(IN PDEVICE_OBJECT DeviceObject,
@@ -303,7 +303,7 @@
/* Acquire the cancel lock and make sure the IRP is valid */
IoAcquireCancelSpinLock(&CancelIrql);
- if (Irp->Cancel)
+ if (!Irp)
{
/* It's not, release the lock and quit */
IoReleaseCancelSpinLock(CancelIrql);