Эх сурвалжийг харах

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

xcbosa mbp16 2 сар өмнө
parent
commit
b2ea95f28f

+ 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;
     const int maximumSplitPacketSize = VMP_STRBUF_LEN - 1;
     do {
     do {
         int currentSplitSize = MIN(length - packetOffset, maximumSplitPacketSize);
         int currentSplitSize = MIN(length - packetOffset, maximumSplitPacketSize);
-        bool hasNext = packetOffset + currentSplitSize >= length;
+        bool hasNext = packetOffset + currentSplitSize < length;
         tx_command tx = {
         tx_command tx = {
             .type = tx_command_type_vmnet,
             .type = tx_command_type_vmnet,
             .tid = hasNext ? 21 : 22,
             .tid = hasNext ? 21 : 22,