- Fix typo
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Mon, 12 Oct 2009 18:20:23 +0000 (18:20 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Mon, 12 Oct 2009 18:20:23 +0000 (18:20 +0000)
svn path=/trunk/; revision=43410

reactos/drivers/base/beep/beep.c

index 8210840..4e8bfcf 100644 (file)
@@ -288,7 +288,7 @@ BeepUnload(IN PDRIVER_OBJECT DriverObject)
     IoDeleteDevice(DeviceObject);
 }
 
-DRIVER_STARTIO BeepStartIo;
+
 VOID
 NTAPI
 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 */
     IoAcquireCancelSpinLock(&CancelIrql);
-    if (!Irp)
+    if (Irp->Cancel)
     {
         /* It's not, release the lock and quit */
         IoReleaseCancelSpinLock(CancelIrql);