From d9b7f40c799dd359b784fa3c44fde67ffd88bca4 Mon Sep 17 00:00:00 2001 From: dragonmux Date: Thu, 2 Nov 2023 18:04:25 +0000 Subject: [PATCH] hosted/serial_win: Fixed a bug in platform_buffer_write() for Windows which would make wrongly it skip chunks of the buffer to write, corrupting the message to send --- src/platforms/hosted/serial_win.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/platforms/hosted/serial_win.c b/src/platforms/hosted/serial_win.c index c52c10abee6..6dabe0a5c30 100644 --- a/src/platforms/hosted/serial_win.c +++ b/src/platforms/hosted/serial_win.c @@ -237,7 +237,6 @@ bool platform_buffer_write(const void *const data, const size_t length) DEBUG_ERROR("Serial write failed %lu, written %zu\n", GetLastError(), offset); return false; } - offset += written; } return true; }