X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=drivers%2Fbase%2Fbeep%2Fbeep.c;h=e5e8e4258ab8ed7b1d66fe1bfcdfbffd1e5603bb;hp=9ba86705527624abcaf10a9cbf5a0f26dada22a9;hb=0c122589d29c8afa05c4ce2cf47378b2d9a91c6f;hpb=bf136052c03c99980cc89269f5934c9922f10532 diff --git a/drivers/base/beep/beep.c b/drivers/base/beep/beep.c index 9ba86705527..e5e8e4258ab 100644 --- a/drivers/base/beep/beep.c +++ b/drivers/base/beep/beep.c @@ -130,7 +130,7 @@ BeepCancel(IN PDEVICE_OBJECT DeviceObject, } else { - /* Otherwise, remove the packet from the queue and relelase the lock */ + /* Otherwise, remove the packet from the queue and release the lock */ KeRemoveEntryDeviceQueue(&DeviceObject->DeviceQueue, &Irp->Tail.Overlay.DeviceQueueEntry); IoReleaseCancelSpinLock(Irp->CancelIrql); @@ -234,7 +234,7 @@ BeepDeviceControl(IN PDEVICE_OBJECT DeviceObject, } else if ((BeepParam->Frequency != 0) && !(BeepParam->Duration)) { - /* No duration, return imemdiately */ + /* No duration, return immediately */ Status = STATUS_SUCCESS; } else @@ -339,7 +339,7 @@ BeepStartIo(IN PDEVICE_OBJECT DeviceObject, { /* Beep successful, queue a DPC to stop it */ Status = STATUS_SUCCESS; - DueTime.QuadPart = Int32x32To64(BeepParam->Duration, -10000); + DueTime.QuadPart = BeepParam->Duration * -10000LL; InterlockedIncrement(&DeviceExtension->TimerActive); KeSetTimer(&DeviceExtension->Timer, DueTime, &DeviceObject->Dpc); }