From ab0736d95a848a6d9675765c8253df6f69e20844 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sat, 25 Oct 2014 15:36:11 +0000 Subject: [PATCH] [NTVDM]: So..... do not overflow the Cycles count, i.e. better estimate the number of instructions per second :) svn path=/trunk/; revision=64985 --- reactos/subsystems/ntvdm/clock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/subsystems/ntvdm/clock.c b/reactos/subsystems/ntvdm/clock.c index c9d9a5cb45a..bd4ff2e55ca 100644 --- a/reactos/subsystems/ntvdm/clock.c +++ b/reactos/subsystems/ntvdm/clock.c @@ -56,7 +56,7 @@ UINT Irq12Counter = 0; #ifdef IPS_DISPLAY DWORD LastCyclePrintout; - DWORD Cycles = 0; + ULONGLONG Cycles = 0; #endif /* PUBLIC FUNCTIONS ***********************************************************/ @@ -142,7 +142,7 @@ VOID ClockUpdate(VOID) { CpuStep(); #ifdef IPS_DISPLAY - Cycles++; + ++Cycles; #endif }