X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/bcb1823f2c7cb3e886e54c6932ff2c37731d8ab8..3ee4eedaec9cad4b5b2ff0f40567fa2e57a942a9:/windows/winplink.c diff --git a/windows/winplink.c b/windows/winplink.c index 0abed7ce..dfbb80d8 100644 --- a/windows/winplink.c +++ b/windows/winplink.c @@ -636,12 +636,12 @@ int main(int argc, char **argv) } if (run_timers(now, &next)) { - then = now; - now = GETTICKCOUNT(); - if (now - then > next - then) - ticks = 0; - else - ticks = next - now; + then = now; + now = GETTICKCOUNT(); + if (now - then > next - then) + ticks = 0; + else + ticks = next - now; } else { ticks = INFINITE; }