[BEEP]: Convert to LONGLONG before doing the multiplication (or: use our macro Int32x...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 27 Jan 2014 00:30:12 +0000 (00:30 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 27 Jan 2014 00:30:12 +0000 (00:30 +0000)
svn path=/trunk/; revision=61848

reactos/drivers/base/beep/beep.c

index 444f0f0..9ba8670 100644 (file)
@@ -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);
         }