浏览代码

[Feat] [1.0.0] vmnet 使用 vmprocess 通信

xcbosa mbp16 2 月之前
父节点
当前提交
b2ea95f28f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      post_sbin/getty.c

+ 1 - 1
post_sbin/getty.c

@@ -99,7 +99,7 @@ int vmnet_write_message(const char *buffer, int length) {
     const int maximumSplitPacketSize = VMP_STRBUF_LEN - 1;
     do {
         int currentSplitSize = MIN(length - packetOffset, maximumSplitPacketSize);
-        bool hasNext = packetOffset + currentSplitSize >= length;
+        bool hasNext = packetOffset + currentSplitSize < length;
         tx_command tx = {
             .type = tx_command_type_vmnet,
             .tid = hasNext ? 21 : 22,