mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 22:32:58 +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:
parent
c224fd594b
commit
beed0625d8
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ BeepStartIo(IN PDEVICE_OBJECT DeviceObject,
|
||||||
{
|
{
|
||||||
/* Beep successful, queue a DPC to stop it */
|
/* Beep successful, queue a DPC to stop it */
|
||||||
Status = STATUS_SUCCESS;
|
Status = STATUS_SUCCESS;
|
||||||
DueTime.QuadPart = BeepParam->Duration * -10000;
|
DueTime.QuadPart = Int32x32To64(BeepParam->Duration, -10000);
|
||||||
InterlockedIncrement(&DeviceExtension->TimerActive);
|
InterlockedIncrement(&DeviceExtension->TimerActive);
|
||||||
KeSetTimer(&DeviceExtension->Timer, DueTime, &DeviceObject->Dpc);
|
KeSetTimer(&DeviceExtension->Timer, DueTime, &DeviceObject->Dpc);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue