winegstreamer: Fix integer overflow in scale_uint64.
Signed-off-by: Anton Baskanov <baskanov@gmail.com> Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7d7b8e2a88
commit
ad5342b87c
|
@ -597,8 +597,8 @@ static uint64_t scale_uint64(uint64_t value, uint32_t numerator, uint32_t denomi
|
|||
return 0;
|
||||
|
||||
i.QuadPart = value;
|
||||
low.QuadPart = i.u.LowPart * numerator;
|
||||
high.QuadPart = i.u.HighPart * numerator + low.u.HighPart;
|
||||
low.QuadPart = (ULONGLONG)i.u.LowPart * numerator;
|
||||
high.QuadPart = (ULONGLONG)i.u.HighPart * numerator + low.u.HighPart;
|
||||
low.u.HighPart = 0;
|
||||
|
||||
if (high.u.HighPart >= denominator)
|
||||
|
|
Loading…
Reference in New Issue