]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - windows/winplink.c
Fix an always-false if statement which was causing the window border
[PuTTY.git] / windows / winplink.c
index 0abed7ce31f682d0a597ccb490abe915d1f8c93f..dfbb80d84de3eb352de6c9a10b932ab16b0db66e 100644 (file)
@@ -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;
        }