mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[BEEP]: Convert to LONGLONG before doing the multiplication (or: use our macro Int32x32To64): avoids overflows.
svn path=/trunk/; revision=61848
This commit is contained in:
@@ -339,7 +339,7 @@ BeepStartIo(IN PDEVICE_OBJECT DeviceObject,
|
||||
{
|
||||
/* Beep successful, queue a DPC to stop it */
|
||||
Status = STATUS_SUCCESS;
|
||||
DueTime.QuadPart = BeepParam->Duration * -10000;
|
||||
DueTime.QuadPart = Int32x32To64(BeepParam->Duration, -10000);
|
||||
InterlockedIncrement(&DeviceExtension->TimerActive);
|
||||
KeSetTimer(&DeviceExtension->Timer, DueTime, &DeviceObject->Dpc);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user