win_serial_passthrough: Don't error on 0-byte writes
This commit is contained in:
@@ -73,9 +73,6 @@ plat_serpt_write_vcon(serial_passthrough_t *dev, uint8_t data)
|
||||
// fwrite(dev->master_fd, &data, 1);
|
||||
DWORD bytesWritten = 0;
|
||||
WriteFile((HANDLE) dev->master_fd, &data, 1, &bytesWritten, NULL);
|
||||
if (bytesWritten == 0) {
|
||||
fatal("serial_passthrough: WriteFile pipe write-buffer full!");
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user