Bug 77992 part 1.2 - Fix a bug in Windows timestamp calculations; r=karlt

This commit is contained in:
Brian Birtles 2014-06-18 08:58:25 +09:00
parent d6830aed9b
commit a08e94eac7

View File

@ -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;