[SerialICE] r51 - trunk/qemu-0.11.0

svn at coresystems.de svn at coresystems.de
Thu Nov 19 19:46:51 CET 2009


Author: stepan
Date: 2009-11-19 19:46:51 +0100 (Thu, 19 Nov 2009)
New Revision: 51

Modified:
   trunk/qemu-0.11.0/serialice.c
Log:
This should fix the readback errors on MINGW


Modified: trunk/qemu-0.11.0/serialice.c
===================================================================
--- trunk/qemu-0.11.0/serialice.c	2009-11-19 16:31:15 UTC (rev 50)
+++ trunk/qemu-0.11.0/serialice.c	2009-11-19 18:46:51 UTC (rev 51)
@@ -405,7 +405,7 @@
 		int ret = 0;
 		while (ret == 0) WriteFile(state->fd, buffer + i, 1, &ret, NULL);
 		ret = 0;
-		while (ret == 0) ReadFile(state->fd, buffer + i, 1, &ret, NULL);
+		while (ret == 0) ReadFile(state->fd, &c, 1, &ret, NULL);
 #else
 		while (write(state->fd, buffer + i, 1) != 1) ;
 		while (read(state->fd, &c, 1) != 1) ;




More information about the SerialICE mailing list