mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 77992 part 1.2 - Fix a bug in Windows timestamp calculations; r=karlt
This commit is contained in:
parent
d6830aed9b
commit
a08e94eac7
@ -5728,9 +5728,9 @@ nsWindow::GetMessageTimeStamp(LONG aEventTime)
|
||||
cyclesToAdd++;
|
||||
}
|
||||
|
||||
if (timesWrapped > 0) {
|
||||
if (cyclesToAdd > 0) {
|
||||
eventTimeStamp +=
|
||||
TimeDuration::FromMilliseconds(kEventTimeRange * timesWrapped);
|
||||
TimeDuration::FromMilliseconds(kEventTimeRange * cyclesToAdd);
|
||||
}
|
||||
|
||||
return eventTimeStamp;
|
||||
|
Loading…
Reference in New Issue
Block a user