[wineconsole] Off by one in compression (1/4)

Peter Berg Larsen pebl at math.ku.dk
Sat Nov 29 00:58:29 CST 2003


Changelog:
- The last event was not looked at when compressing console events


-------------- next part --------------
diff -ur wine-20031016/programs/wineconsole/wineconsole.c wine-my/programs/wineconsole/wineconsole.c
--- wine-20031016/programs/wineconsole/wineconsole.c	2003-10-15 23:01:05.000000000 +0200
+++ wine-my/programs/wineconsole/wineconsole.c	2003-10-22 15:41:03.000000000 +0200
@@ -234,7 +234,7 @@
     }
     /* step 2: manage update events */
     ev_found = -1;
-    for (i = 0; i < num - 1; i++)
+    for (i = 0; i < num; i++)
     {
 	if (evts[i].event == CONSOLE_RENDERER_NONE_EVENT) continue;
 	if (evts[i].event != CONSOLE_RENDERER_UPDATE_EVENT)


More information about the wine-patches mailing list